Subject: bin/9922: /usr/bin/ftp problem with pipe filename
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@primenet.com.au>
List: netbsd-bugs
Date: 04/18/2000 00:07:23
>Number: 9922
>Category: bin
>Synopsis: /usr/bin/ftp not recognising pipe as filename
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 18 00:08:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Geoff C. Wing
>Release: 20000418
>Organization:
Geoff Wing : <gcw@pobox.com> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@zsh.org> Phone : (Australia) 0413 431 874
>Environment:
System: NetBSD c.primenet.com.au 1.4X NetBSD 1.4X (C) #0: Tue Apr 18 14:59:59 EST 2000 mason@c.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/C i386
>Description:
% ftp
ftp> dir |less
229 Entering Extended Passive Mode (|||65438|)
150 Opening ASCII mode data connection for '/bin/ls'.
226 Transfer complete.
<...cos I don't have a file called ``|less''...>
ftp> dir . |less
<...works as expected...>
IIRC, the first invocation should do what the second one does.
Also man page says:
....
FILE NAMING CONVENTIONS
Files specified as arguments to ftp commands are processed according to
the following rules.
1. If the file name `-' is specified, the stdin (for reading) or stdout
(for writing) is used.
2. If the first character of the file name is `|', the remainder of the
argument is interpreted as a shell command.
....
>How-To-Repeat:
As above.
>Fix:
?
>Release-Note:
>Audit-Trail:
>Unformatted: