From owner-cvs-src Mon Mar 24 8:15:54 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B065937B401 for ; Mon, 24 Mar 2003 08:15:47 -0800 (PST) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DE9543F75 for ; Mon, 24 Mar 2003 08:15:45 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 17996 invoked from network); 24 Mar 2003 16:15:48 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 24 Mar 2003 16:15:48 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h2OGFdOv092368; Mon, 24 Mar 2003 11:15:40 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200303231829.h2NITqWH016146@repoman.freebsd.org> Date: Mon, 24 Mar 2003 11:15:30 -0500 (EST) From: John Baldwin To: Maxime Henrion Subject: RE: cvs commit: src/usr.bin/xargs xargs.1 xargs.c Cc: cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org X-Spam-Status: No, hits=-19.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES 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 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 <>< 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-src" in the body of the message