Hi there, I think the "dir |more" example in ftp.1 is not working as intended.
ls (and by extension its synonym dir) expects to be called like this: ls [remote-directory [local-file]] Therefore, "dir |more" would print the contents of a remote directory called "|more", which usually doesn't exist. I think the example is supposed to be "dir . |more" which pipes the contents of the current directory to more. The first patch below changes "dir |more" to "dir . |more". The second patch changes it to "ls . |more", in case ls should be preferred over its synonym dir. Cheers, Frederic Index: usr.bin/ftp/ftp.1 =================================================================== RCS file: /cvs/src/usr.bin/ftp/ftp.1,v retrieving revision 1.100 diff -u -p -r1.100 ftp.1 --- usr.bin/ftp/ftp.1 25 Sep 2015 20:32:39 -0000 1.100 +++ usr.bin/ftp/ftp.1 3 Nov 2015 15:31:04 -0000 @@ -1481,7 +1481,7 @@ must be quoted; e.g., .Qq ls -lt . A particularly useful example of this mechanism is: -.Qq dir |more . +.Qq dir \&. |more . .It Failing the above checks, if .Dq globbing Index: usr.bin/ftp/ftp.1 =================================================================== RCS file: /cvs/src/usr.bin/ftp/ftp.1,v retrieving revision 1.100 diff -u -p -r1.100 ftp.1 --- usr.bin/ftp/ftp.1 25 Sep 2015 20:32:39 -0000 1.100 +++ usr.bin/ftp/ftp.1 3 Nov 2015 15:31:04 -0000 @@ -1481,7 +1481,7 @@ must be quoted; e.g., .Qq ls -lt . A particularly useful example of this mechanism is: -.Qq dir |more . +.Qq ls \&. |more . .It Failing the above checks, if .Dq globbing