From owner-cvs-src Mon Mar 24 10: 3:22 2003 Delivered-To: cvs-src@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 103B337B4AA; Mon, 24 Mar 2003 10:03:17 -0800 (PST) Date: Mon, 24 Mar 2003 12:03:16 -0600 From: Juli Mallett To: John Baldwin Cc: Maxime Henrion , 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: <20030324120316.A13965@FreeBSD.org> References: <200303231829.h2NITqWH016146@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jhb@FreeBSD.org on Mon, Mar 24, 2003 at 11:15:30AM -0500 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-Negacore: Yes X-Title: Code Maven X-Spam-Status: No, hits=-26.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: John Baldwin [ Data: 2003-03-24 ] [ Subjecte: RE: cvs commit: src/usr.bin/xargs xargs.1 xargs.c ] > > 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. IMHO, this should have been called -t (but that's taken) for "pass TTY to child process" - it's a very specific sort of work-around one needs to do for some things. Talking about /dev/tty opens it up too much for bikeshedding, unfortunately. There is one related general option I am interested in, and which I will try to add to FreeBSD at some time in the near future, and that is the option to read the *input* from a file, leaving things unobstructed. I use xargs for mp3 playing a lot, so that's where both things come in use for me. Thanx, juli. -- juli mallett. email: jmallett@freebsd.org; aim: bsdflata; efnet: juli; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message