Variable: tramp-bundle-read-file-names

tramp-bundle-read-file-names is a variable defined in tramp-sh.el.gz.

Value

"printf \"(\\n\"\nwhile IFS= read file; do\n  printf \"(\"; %k \"$file\"\n  if %q \"$file\"; then printf \" %%s\" t; else printf \" %%s\" nil; fi\n  if %m -r \"$file\"; then printf \" %%s\" t; else printf \" %%s\" nil; fi\n  if %m -d \"$file\"; then printf \" %%s\" t; else printf \" %%s\" nil; fi\n  if %m -x \"$file\"; then printf \" %%s)\\n\" t; else printf \" %%s)\\n\" nil; fi\ndone\nprintf \")\\n\""

Documentation

Shell script to check file attributes of a bundle of files.

For every file, it returns a list with the absolute file name, and the tests for file existence, file readability, file directory, and file executable. Input shall be read via here-document, otherwise the command could exceed maximum length of command line. Format specifiers are replaced by tramp-expand-script, percent characters need to be doubled.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defconst tramp-bundle-read-file-names "\
printf \"(\\n\"
while IFS= read file; do
  printf \"(\"; %k \"$file\"
  if %q \"$file\"; then printf \" %%s\" t; else printf \" %%s\" nil; fi
  if %m -r \"$file\"; then printf \" %%s\" t; else printf \" %%s\" nil; fi
  if %m -d \"$file\"; then printf \" %%s\" t; else printf \" %%s\" nil; fi
  if %m -x \"$file\"; then printf \" %%s)\\n\" t; else printf \" %%s)\\n\" nil; fi
done
printf \")\\n\""
  "Shell script to check file attributes of a bundle of files.
For every file, it returns a list with the absolute file name, and the
tests for file existence, file readability, file directory, and file
executable.  Input shall be read via here-document, otherwise the
command could exceed maximum length of command line.
Format specifiers are replaced by `tramp-expand-script', percent
characters need to be doubled.")