Variable: tramp-vc-registered-read-file-names

tramp-vc-registered-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    if %s \"$file\"; then\n	echo \"(\\\"$quoted\\\" \\\"file-exists-p\\\" t)\"\n    else\n	echo \"(\\\"$quoted\\\" \\\"file-exists-p\\\" nil)\"\n    fi\n    if %s \"$file\"; then\n	echo \"(\\\"$quoted\\\" \\\"file-readable-p\\\" t)\"\n    else\n	echo \"(\\\"$quoted\\\" \\\"file-readable-p\\\" nil)\"\n    fi\ndone\necho \")\""

Documentation

Script to check existence of VC related files.

It must be send formatted with two strings; the tests for file existence, and file readability. 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.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defconst tramp-vc-registered-read-file-names
  "echo \"(\"
while read file; do
    quoted=`echo \"$file\" | sed -e \"s/\\\"/\\\\\\\\\\\\\\\\\\\"/\"`
    if %s \"$file\"; then
	echo \"(\\\"$quoted\\\" \\\"file-exists-p\\\" t)\"
    else
	echo \"(\\\"$quoted\\\" \\\"file-exists-p\\\" nil)\"
    fi
    if %s \"$file\"; then
	echo \"(\\\"$quoted\\\" \\\"file-readable-p\\\" t)\"
    else
	echo \"(\\\"$quoted\\\" \\\"file-readable-p\\\" nil)\"
    fi
done
echo \")\""
  "Script to check existence of VC related files.
It must be send formatted with two strings; the tests for file
existence, and file readability.  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.")