Date: Thu, 14 May 1998 23:35:01 +0200 From: Tor Egge <Tor.Egge@idi.ntnu.no> To: cracauer@cons.org Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/6557: /bin/sh && IFS Message-ID: <199805142135.XAA01626@pat.idi.ntnu.no> In-Reply-To: Your message of "Wed, 13 May 1998 02:00:02 -0700 (PDT)" References: <199805130900.CAA03452@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hm, Solaris' ksh and sh don't agree completely (Solaris 2.6/SPARC): > > #! /bin/sh > IFS=" :" > var="bla:fasel:blubb:" > for i in foo:bla:fasel:blubb: ; do > echo val: "'"$i"'" > done > echo > for i in foo:$var ; do > echo val: "'"$i"'" > done ksh93 on Solaris 2.5.1 gives: val: 'foo bla fasel blubb ' val: 'foo bla' val: 'fasel' val: 'blubb' This is almost the correct output. IMO, the correct output is val: 'foo bla fasel blubb ' val: 'foo bla' val: 'fasel' val: 'blubb' val: '' - Tor Egge 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?199805142135.XAA01626>