Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2003 11:15:30 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Maxime Henrion <mux@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org
Subject:   RE: cvs commit: src/usr.bin/xargs xargs.1 xargs.c
Message-ID:  <XFMail.20030324111530.jhb@FreeBSD.org>
In-Reply-To: <200303231829.h2NITqWH016146@repoman.freebsd.org>

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

On 23-Mar-2003 Maxime Henrion wrote:
> mux         2003/03/23 10:29:52 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.bin/xargs        xargs.1 xargs.c 
>   Log:
>   Add a new -o option to tell xargs(1) to reopen /dev/tty as stdin in
>   the child process, before executing the command.  This is very useful
>   when you do stuff like ``find ... | xargs interactive_application''.
>   Without -o, the application would inherit the pipe as its stdin, and
>   you thus lose any control over it.
>   
>   This flag has been carefully chosen to not conflit with other options
>   of other xargs utilities like GNU xargs.
>   
>   Reviewed by:    jmallett

Why not a more generic option that allows you to specify a file to use
for stdin of children?  i.e. xargs -o /dev/stdin or xargs -o /dev/fd/6
or something.  Also, xargs should probably be fixed to use /dev/null
by default so that child processes can't read stuff from the pipe.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030324111530.jhb>