Files specified as arguments to ftp commands are processed according to the following rules.
popenwith 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’.
globcommand. If the ftp command expects a single local file (e.g.
put), only the first filename generated by the globbing operation is used.
getcommands with unspecified local file names, the local filename is the remote filename, which may be altered by a
nmapsetting. The resulting filename may then be altered if
putcommands with unspecified remote file names, the remote filename is the local filename, which may be altered by a
nmapsetting. The resulting filename may then be altered by the remote server if