From owner-freebsd-hackers Thu Jan 7 19:43:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA22813 for freebsd-hackers-outgoing; Thu, 7 Jan 1999 19:43:10 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA22804 for ; Thu, 7 Jan 1999 19:43:08 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.1/8.9.1) id EAA95877; Fri, 8 Jan 1999 04:42:37 +0100 (CET) (envelope-from des) To: hackers@FreeBSD.ORG Subject: /usr/bin/ftp From: Dag-Erling Smorgrav Date: 08 Jan 1999 04:42:36 +0100 Message-ID: Lines: 17 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There was a discussion about FTP clients on #FreeBSD today, and in connection with that I discussion I noticed that there are bugs in ftp(1)'s argument handling. For instance, "dir |more", which is suggested in the man page as an example of piping, doesn't work - it requires one argument in front of the one with the pipe (so "dir . |more" works) I also noticed that there's a lot of redundancy in cmds.c - practically each command is implemented as a separate function that does its own argument parsing, even though most of them have nearly the same syntax. Whaddya say, is ftp(1) due for a revamp? DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message