[comp.sys.hp] Strange IFS in HP-UX 2.1 /bin/sh

houten@pttdis.UUCP (Karel van Houten) (02/09/89)

Since our upgrade from hpux 1.2 to 2.1 the IFS character in 
the bourne shell has changed from the normal TAB, SPACE, NEWLINE
to TAB, SPACE, \240, NEWLINE.

Sample output:
$ echo "$IFS" | od -bc
0000000      \t  \n 240  \n
	040 011 012 240 012
0000005
$

This does not occur in the Korn or C shells.

My question is WHY has HP introduced this behaviour?
Any suggestions?
-- 
Karel van Houten, 		INTERNET-style:	houten@pttdis.UUCP
PTT Telecom b.v.		UUCP:		uunet!mcvax!hp4nl!pttdis!houten
's-Gravenhage, The Netherland	VOICE:		+31 70 434947

wk@hpirs.HP.COM (Wayne Krone) (02/12/89)

> Since our upgrade from hpux 1.2 to 2.1 the IFS character in 
> the bourne shell has changed from the normal TAB, SPACE, NEWLINE
> to TAB, SPACE, \240, NEWLINE.

> My question is WHY has HP introduced this behaviour?

For HP's 8-bit character code sets 0240 is the "alternative space"
character.  It is primarily used in right-to-left languages (such
as Arabic) as a right-to-left space (as opposed to 040 which is a
left-to-right space.

Were you just curious or is this causing a problem for you that we
should know about?

Wayne Krone