From owner-freebsd-bugs Tue May 12 12:53:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA12101 for freebsd-bugs-outgoing; Tue, 12 May 1998 12:53:34 -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 MAA12096 for ; Tue, 12 May 1998 12:53:31 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA26446; Tue, 12 May 1998 12:50:00 -0700 (PDT) Date: Tue, 12 May 1998 12:50:00 -0700 (PDT) Message-Id: <199805121950.MAA26446@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: 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 Planix, Inc. ; Secrets of the Weird To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message