From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 16 23:41:31 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87E60106566B for ; Tue, 16 Feb 2010 23:41:31 +0000 (UTC) (envelope-from janm-freebsd-hackers@transactionware.com) Received: from mail.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.freebsd.org (Postfix) with SMTP id A72678FC1D for ; Tue, 16 Feb 2010 23:41:30 +0000 (UTC) Received: (qmail 5240 invoked from network); 16 Feb 2010 23:49:19 -0000 Received: from midgard.transactionware.com (192.168.1.55) by dm.transactionware.com with SMTP; 16 Feb 2010 23:49:19 -0000 Received: (qmail 37332 invoked by uid 907); 16 Feb 2010 23:41:27 -0000 Received: from jmmacpro.transactionware.com (HELO jmmacpro.transactionware.com) (192.168.1.33) by midgard.transactionware.com (qpsmtpd/0.82) with ESMTP; Wed, 17 Feb 2010 10:41:27 +1100 Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=iso-8859-1 From: Jan Mikkelsen In-Reply-To: <86eikljt7i.fsf@ds4.des.no> Date: Wed, 17 Feb 2010 10:41:27 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <364299f41002151649y2e4d4120p918759afb1fd8f6c@mail.gmail.com> <7d6fde3d1002151655q184c8a21k8a0c6c07b9b0ae79@mail.gmail.com> <86eikljt7i.fsf@ds4.des.no> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1077) Cc: Garrett Cooper , FreeBSD-Hackers Subject: Re: read(1) garbage when input redirected from make incorrectly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2010 23:41:31 -0000 On 16/02/2010, at 10:49 PM, Dag-Erling Sm=F8rgrav wrote: > The LHS of < is a command, the RHS is the name of the file to be read. > After that, you can have further redirections, a command separator > (semicolon, single or double ampersand, single or double pipe etc.), = or, > depending on context, various other stuff such as a paren, bracket, > backquote etc. A redirection doesn't terminate the argument list. For example: echo a b < /dev/null c d Produces: a b c d And: < /etc/passwd cat Will emit /etc/passwd to stdout. Regards, Jan Mikkelsen