Function: ange-ftp-quote-string
ange-ftp-quote-string is a byte-compiled function defined in
ange-ftp.el.gz.
Signature
(ange-ftp-quote-string STRING)
Documentation
Quote any characters in STRING that may confuse the FTP process.
Source Code
;; Defined in /usr/src/emacs/lisp/net/ange-ftp.el.gz
(defun ange-ftp-quote-string (string)
"Quote any characters in STRING that may confuse the FTP process."
;; This is said to be wrong; ftp is said to need quoting only for ",
;; and that by doubling it. But experiment says UNIX-style kind of
;; quoting is correct when talking to ftp on GNU/Linux systems, and
;; W32-style kind of quoting on, yes, W32 systems.
;; STRING could be a quoted file name, we unquote it. It is
;; unlikely, that other strings but file names look alike.
(if (stringp string)
(shell-quote-argument (file-name-unquote string))
""))