From owner-freebsd-bugs Sat Feb 22 22:40:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA23763 for bugs-outgoing; Sat, 22 Feb 1997 22:40:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA23740; Sat, 22 Feb 1997 22:40:01 -0800 (PST) Date: Sat, 22 Feb 1997 22:40:01 -0800 (PST) Message-Id: <199702230640.WAA23740@freefall.freebsd.org> To: freebsd-bugs Cc: From: Scott Blachowicz Subject: Re: bin/2803: /bin/sh 'for' statement vs IFS setting problem Reply-To: Scott Blachowicz Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2803; it has been noted by GNATS. From: Scott Blachowicz To: Mike Pritchard Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2803: /bin/sh 'for' statement vs IFS setting problem Date: Sat, 22 Feb 1997 21:31:34 -0800 Mike Pritchard wrote: > 3) > IFS=' :' > xxx=a:b:C > for tok in $xxx > do > echo $tok > done Ahhh...that looks a little less expensive than my workarounds... > For the record, under 3.0, every shell I tried, ksh, sh and bash > all work this way. Does this work the same way on other operating > systems? E.g. Sunos/Solaris, or some other SYSv variety? Well...here's a few... basil: IRIX basil 5.2 02282013 IP12 mips basil: a basil: b basil: c basil: d basil: e basil: f deck: OSF1 deck.statsci.com V3.2 17 alpha deck: a deck: b deck: c deck: d deck: e deck: f hoki: HP-UX hoki B.08.00 A 9000/42E 08000917b2cd hoki: a hoki: b hoki: c hoki: d hoki: e hoki: f mace: HP-UX mace A.09.05 A 9000/710 2012684354 two-user license mace: a mace: b mace: c mace: d mace: e mace: f main: SunOS main 5.3 Generic sun4m sparc main: a main: b main: c main: d main: e main: f spud: SunOS spud 4.1.1 7 sun4c spud: a spud: b spud: c spud: d spud: e spud: f Scott Blachowicz Ph: 206/283-8802x240 Mathsoft (Data Analysis Products Div) 1700 Westlake Ave N #500 scott@statsci.com Seattle, WA USA 98109 Scott.Blachowicz@seaslug.org