From: Kai Gro?j. <ka...@us...> - 2001-12-30 16:53:38
|
Update of /cvsroot/tramp/tramp/lisp In directory usw-pr-cvs1:/tmp/cvs-serv8399/tramp/lisp Modified Files: ChangeLog tramp.el Log Message: (tramp-post-connection): Use parens around "test / -nt /" command to find out if `test' supports the `-nt' switch. Without the parens, /bin/sh as of BSD/OS 4.x crashes. Reported by Jason Mastaler. Index: ChangeLog =================================================================== RCS file: /cvsroot/tramp/tramp/lisp/ChangeLog,v retrieving revision 2.55 retrieving revision 2.56 diff -C2 -d -r2.55 -r2.56 *** ChangeLog 2001/12/29 22:06:29 2.55 --- ChangeLog 2001/12/30 16:53:34 2.56 *************** *** 1,2 **** --- 1,9 ---- + 2001-12-30 Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> + + * tramp.el (tramp-post-connection): Use parens around "test / -nt + /" command to find out if `test' supports the `-nt' switch. + Without the parens, /bin/sh as of BSD/OS 4.x crashes. + Reported by Jason Mastaler. + 2001-12-29 Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> Index: tramp.el =================================================================== RCS file: /cvsroot/tramp/tramp/lisp/tramp.el,v retrieving revision 2.59 retrieving revision 2.60 diff -C2 -d -r2.59 -r2.60 *** tramp.el 2001/12/29 21:21:57 2.59 --- tramp.el 2001/12/30 16:53:34 2.60 *************** *** 3854,3862 **** (tramp-wait-for-output) ;; Does `test A -nt B' work? Use abominable `find' construct if it ! ;; doesn't. (erase-buffer) (make-local-variable 'tramp-test-groks-nt) (tramp-send-command multi-method method user host ! "test / -nt /") (tramp-wait-for-output) (goto-char (point-min)) --- 3854,3863 ---- (tramp-wait-for-output) ;; Does `test A -nt B' work? Use abominable `find' construct if it ! ;; doesn't. BSD/OS 4.0 wants the parentheses around the command, ! ;; for otherwise the shell crashes. (erase-buffer) (make-local-variable 'tramp-test-groks-nt) (tramp-send-command multi-method method user host ! "( test / -nt / )") (tramp-wait-for-output) (goto-char (point-min)) |