comparison lisp/net/tramp.el @ 111046:f0ba7e7104ca

* net/tramp.el (tramp-do-file-attributes-with-stat) (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in order to make stat results a float. Patch by Andreas Schwab <schwab@linux-m68k.org>.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 19 Oct 2010 11:26:21 +0200
parents 02c2f28e7c6a
children 2f8137628e61
comparison
equal deleted inserted replaced
111045:fd1924053d81 111046:f0ba7e7104ca
2920 (tramp-send-command-and-read 2920 (tramp-send-command-and-read
2921 vec 2921 vec
2922 (format 2922 (format
2923 ;; On Opsware, pdksh (which is the true name of ksh there) doesn't 2923 ;; On Opsware, pdksh (which is the true name of ksh there) doesn't
2924 ;; parse correctly the sequence "((". Therefore, we add a space. 2924 ;; parse correctly the sequence "((". Therefore, we add a space.
2925 "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)" 2925 "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)"
2926 (tramp-get-file-exists-command vec) 2926 (tramp-get-file-exists-command vec)
2927 (tramp-shell-quote-argument localname) 2927 (tramp-shell-quote-argument localname)
2928 (tramp-get-test-command vec) 2928 (tramp-get-test-command vec)
2929 (tramp-shell-quote-argument localname) 2929 (tramp-shell-quote-argument localname)
2930 (tramp-get-remote-stat vec) 2930 (tramp-get-remote-stat vec)
3376 ;; We must care about filenames with spaces, or starting with 3376 ;; We must care about filenames with spaces, or starting with
3377 ;; "-"; this would confuse xargs. "ls -aQ" might be a solution, 3377 ;; "-"; this would confuse xargs. "ls -aQ" might be a solution,
3378 ;; but it does not work on all remote systems. Therefore, we 3378 ;; but it does not work on all remote systems. Therefore, we
3379 ;; quote the filenames via sed. 3379 ;; quote the filenames via sed.
3380 "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " 3380 "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
3381 "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); " 3381 "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); "
3382 "echo \")\"") 3382 "echo \")\"")
3383 (tramp-shell-quote-argument localname) 3383 (tramp-shell-quote-argument localname)
3384 (tramp-get-ls-command vec) 3384 (tramp-get-ls-command vec)
3385 (tramp-get-remote-stat vec) 3385 (tramp-get-remote-stat vec)
3386 (if (eq id-format 'integer) "%u" "\"%U\"") 3386 (if (eq id-format 'integer) "%u" "\"%U\"")