Date: Tue, 12 May 1998 12:50:00 -0700 (PDT) From: woods@zeus.leitch.com (Greg A. Woods) To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/6557: /bin/sh && IFS Message-ID: <199805121950.MAA26446@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: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: bin/6557: /bin/sh && IFS Date: Tue, 12 May 1998 15:51:52 -0400 (EDT) > #!/bin/sh > XXX=/1:/2:/3: > IFS=: > echo /0:$XXX > > The expected result should be: "/0 /1 /2 /3" > However, with current /bin/sh it's: "/0:/1 /2 /3" Oddly enough this same problem exists in PD KSH v5.2.13 97/10/27. This problem does not exist in any SysV derived Bourne shell, including the SunOS-{4,5} ones, nor in any Korn shell that I tried. I'm fairly sure POSIX.2 requires the SysV behaviour (though I haven't bothered to check). -- 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?199805121950.MAA26446>