Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 1997 22:40:01 -0800 (PST)
From:      Scott Blachowicz <scott@statsci.com>
To:        freebsd-bugs
Subject:   Re: bin/2803: /bin/sh 'for' statement vs IFS setting problem 
Message-ID:  <199702230640.WAA23740@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/2803; it has been noted by GNATS.

From: Scott Blachowicz <scott@statsci.com>
To: Mike Pritchard <mpp@freefall.freebsd.org>
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 <mpp@freefall.freebsd.org> 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



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