Variable: tramp-bundle-read-file-names

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

Value

"echo \"(\"\nwhile read file; do\n  quoted=`echo \"$file\" | sed -e \"s/\\\"/\\\\\\\\\\\\\\\\\\\"/\"`\n  printf \"(%%b\" \"\\\"$quoted\\\"\"\n  if %q \"$file\"; then printf \" %%b\" t; else printf \" %%b\" nil; fi\n  if %m -r \"$file\"; then printf \" %%b\" t; else printf \" %%b\" nil; fi\n  if %m -d \"$file\"; then printf \" %%b)\n\" t; else printf \" %%b)\n\" nil; fi\ndone\necho \")\""

Documentation

Script to check file attributes of a bundle of files.

It must be sent formatted with three strings; the tests for file existence, file readability, and file directory. Input shall be read via here-document, otherwise the command could exceed maximum length of command line. Format specifiers "%s" are replaced before the script is used, 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
  "echo \"(\"
while read file; do
  quoted=`echo \"$file\" | sed -e \"s/\\\"/\\\\\\\\\\\\\\\\\\\"/\"`
  printf \"(%%b\" \"\\\"$quoted\\\"\"
  if %q \"$file\"; then printf \" %%b\" t; else printf \" %%b\" nil; fi
  if %m -r \"$file\"; then printf \" %%b\" t; else printf \" %%b\" nil; fi
  if %m -d \"$file\"; then printf \" %%b)\n\" t; else printf \" %%b)\n\" nil; fi
done
echo \")\""
  "Script to check file attributes of a bundle of files.
It must be sent formatted with three strings; the tests for file
existence, file readability, and file directory.  Input shall be
read via here-document, otherwise the command could exceed
maximum length of command line.
Format specifiers \"%s\" are replaced before the script is used,
percent characters need to be doubled.")