Variable: tramp-shell-file-name-all-completions

tramp-shell-file-name-all-completions is a variable defined in tramp-sh.el.gz.

Value

"cd \"$1\" 2>&1; %l -a %n | while IFS= read file; do\n  quoted=`echo \"$1/$file\" | sed -e \"s#//#/#g\"`\n  printf \"%%s\\n\" \"$quoted\"\ndone | %b"

Documentation

Shell script to produce output suitable for use with file-name-all-completions on the remote file system. It returns the same format as tramp-bundle-read-file-names(var)/tramp-bundle-read-file-names(fun), which must be declared on the remote host as well. 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-shell-file-name-all-completions "\
cd \"$1\" 2>&1; %l -a %n | while IFS= read file; do
  quoted=`echo \"$1/$file\" | sed -e \"s#//#/#g\"`
  printf \"%%s\\n\" \"$quoted\"
done | %b"
   "Shell script to produce output suitable for use with
`file-name-all-completions' on the remote file system.  It returns the
same format as `tramp-bundle-read-file-names', which must be declared on
the remote host as well.
Format specifiers are replaced by `tramp-expand-script', percent
characters need to be doubled.")