Files specified as arguments to ftp commands are processed according to the following rules.
popen
with the argument supplied, and
reads/writes from standard input/output. If the shell command
includes spaces, the argument must be quoted; e.g. ‘"ls -lt"’.
A particularly useful example of this mechanism is ‘dir more’.
glob
command. If the ftp command expects a
single local file (e.g. put
), only the first filename
generated by the globbing operation is used.
mget
commands and get
commands with unspecified
local file names, the local filename is the remote filename, which may
be altered by a case
, ntrans
, or nmap
setting.
The resulting filename may then be altered if runique
is on.
mput
commands and put
commands with unspecified
remote file names, the remote filename is the local filename, which
may be altered by a ntrans
or nmap
setting. The
resulting filename may then be altered by the remote server if
sunique
is on.