From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1012a6,7d4fd72daaaac2a2 X-Google-Attributes: gid1012a6,public X-Google-Thread: f678f,7d4fd72daaaac2a2 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,7d4fd72daaaac2a2 X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,7d4fd72daaaac2a2 X-Google-Attributes: gid1020c6,public From: David Boyce Subject: Re: bug in read command in sh under OSF1 V3.0 Date: 1997/03/28 Message-ID: <333BD4B9.3C8B@world.std.com>#1/1 X-Deja-AN: 229067790 Sender: news@world.std.com (Mr Usenet Himself) References: <5gumt5$3qm@news3.texas.net> <333A5BF1.41C6@dcs.rhbnc.ac.uk> X-Priority: 3 (Normal) Organization: The World @ Software Tool & Die Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc,comp.unix.shell,comp.unix.admin Bob Vickers wrote: 
Dan Lipofsky wrote:
>
> I have discovered a bug (I dont think anyone would call it a feature)
> in the functioning of the "read" command in sh under OSF1 V3.0
>
> I have compared it to Linux 2.0, SunOS (4.1.3, 4.1.4, and 5.5),
> AIX 4.1, and HP-UX A.09.01.  This only occurs under OSF1 V3.0.
>
>

Dan,

Change the first line of the OSF1 version to #!/bin/ksh . Korn shell
will give you much more consistent behaviour across different systems
than Bourne shell.
Speaking only from distant memory: I believe Digital has an extremely old version of the Bourne shell in /usr/bin/sh for some reason of backward compatibility. The classic System V Bourne shell, which most vendors ship as /usr/bin/sh, is shipped by them as /usr/bin/sh5. Yes, this is frustrating.

David