From owner-freebsd-bugs Tue May 12 14:53:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA02565 for freebsd-bugs-outgoing; Tue, 12 May 1998 14:53:35 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA02556 for ; Tue, 12 May 1998 14:53:33 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA26863; Tue, 12 May 1998 14:50:02 -0700 (PDT) Date: Tue, 12 May 1998 14:50:02 -0700 (PDT) Message-Id: <199805122150.OAA26863@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: woods@zeus.leitch.com (Greg A. Woods) Subject: Re: bin/6557: /bin/sh && IFS Reply-To: woods@zeus.leitch.com (Greg A. Woods) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/6557; it has been noted by GNATS. From: woods@zeus.leitch.com (Greg A. Woods) To: Tor Egge Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/6557: /bin/sh && IFS Date: Tue, 12 May 1998 17:45:45 -0400 (EDT) [ On Tue, May 12, 1998 at 11:50:00 (-0700), Tor Egge wrote: ] > Subject: Re: bin/6557: /bin/sh && IFS > > According to "X/Open Commands and Utilities Issue 4, Version 2" > Section 2.6 "Word Expansion", field splitting is performed on the > portions of the fields generated by tilde expansion, parameter > expansion, command substitution and arithmetic expansion. That is much clearer language than in the POSIX 1003.2 draft. In the posix language one could infer that the entire command line is the "result of expanding I whould also note that the Korn shell I tested on SunOS-5 is "Version 11/16/88i". However I don't think the XPG 4.2 wording makes any sense at all, nor do I agree that the behaviour of the current shell is "correct". Such field splitting is essentially useless since it requires silly work arounds that add unnecessary code, as revealed by the bugs it causes with GNU Autoconf generated scripts. It is possible that there's something I'm missing here and that the current behaviour actually fills some imporant niche, but I don't see it just now. -- 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