Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 1998 14:50:02 -0700 (PDT)
From:      woods@zeus.leitch.com (Greg A. Woods)
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/6557: /bin/sh && IFS
Message-ID:  <199805122150.OAA26863@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <Tor.Egge@idi.ntnu.no>
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      <gwoods@acm.org>      <robohack!woods>
 Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805122150.OAA26863>