Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2000 15:56:15 -0800 (PST)
From:      Oliver Crow <ocrow@skymind.com>
To:        sebster@sebster.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: argument list too long
Message-ID:  <Pine.BSF.4.21.0011171530160.11939-100000@iguana.skymind.com>
In-Reply-To: <Pine.BSF.4.21.0011171529560.11939-100000@iguana.skymind.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 16 Nov 2000, Sebastiaan van Erk <sebster@sebster.com> wrote:

> 2) That - is the name most programs use for standard in is well known
> to me. Furthermore, this is a convention which has to be respected by
> programs themselves and should be documented in the man page if it is
> used. For example, from the man page of ipf:
> 
>    DESCRIPTION
>        ipf opens the filenames listed (treating "-" as stdin) and
>        parses the file for a set of rules which are to  be  added
> 
> This gives some ambiguity as to how to open the file -. A better
> solution in my opinion would be to have some reserved system file name
> for stdin/stdout which can always be opened with open(2), so this
> functionality can be moved away from programs into the standard
> libraries.


There is such a file -- /dev/stdin

You can do:

find . | grep jsp$ | tar -czvf jsp.tgz -T /dev/stdin

without relying on the "-" parsing ability of tar.

Oliver



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011171530160.11939-100000>