From owner-freebsd-bugs Fri May 15 07:33:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02407 for freebsd-bugs-outgoing; Fri, 15 May 1998 07:33:16 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from gateman.zeus.leitch.com (gateman.zeus.leitch.com [204.187.61.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA02363 for ; Fri, 15 May 1998 07:33:08 -0700 (PDT) (envelope-from woods@tap.zeus.leitch.com) Received: from zeus.leitch.com (tap.zeus.leitch.com [204.187.61.10]) by gateman.zeus.leitch.com (8.8.5/8.7.3/1.0) with ESMTP id KAA00269 for ; Fri, 15 May 1998 10:33:07 -0400 (EDT) Received: from brain.zeus.leitch.com (brain.zeus.leitch.com [204.187.61.32]) by zeus.leitch.com (8.7.5/8.7.3/1.0) with ESMTP id KAA29860 for ; Fri, 15 May 1998 10:33:22 -0400 (EDT) Received: (from woods@localhost) by brain.zeus.leitch.com (8.8.8/8.8.8) id KAA27140; Fri, 15 May 1998 10:33:21 -0400 (EDT) (envelope-from woods@tap.zeus.leitch.com) Date: Fri, 15 May 1998 10:33:21 -0400 (EDT) Message-Id: <199805151433.KAA27140@brain.zeus.leitch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: woods@zeus.leitch.com (Greg A. Woods) To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/6557: /bin/sh && IFS In-Reply-To: Tor Egge's message of "Thu, May 14, 1998 23:35:01 +0200" regarding "Re: bin/6557: /bin/sh && IFS" id <199805142135.XAA01626@pat.idi.ntnu.no> References: <199805130900.CAA03452@freefall.freebsd.org> <199805142135.XAA01626@pat.idi.ntnu.no> X-Mailer: VM 6.45 under Emacs 20.2.1 Reply-To: woods@zeus.leitch.com (Greg A. Woods) Organization: Planix, Inc.; Toronto, Ontario; Canada Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [ On Thu, May 14, 1998 at 23:35:01 (+0200), Tor Egge wrote: ] > Subject: Re: bin/6557: /bin/sh && IFS > > IMO, the correct output is > > val: 'foo bla fasel blubb ' > > val: 'foo bla' > val: 'fasel' > val: 'blubb' > val: '' If P1003.2 Draft 11.2's wording on this survived the final updates (and The Single UNIX Specification, Version 2 seems to concur), the last field should *not* be generated. I do agree though that such behaviour would make it hard to do certain quite common things (such as emulate the shell's own behaviour with PATH in a shell script). -- Greg A. Woods +1 416 443-1734 VE3TCP Planix, Inc. ; Secrets of the Weird To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message