2.8 Bourne shell question
Rick Peralta
fbp at cybvax0.UUCP
Wed Sep 18 02:15:00 AEST 1985
>
>> I tried this litle shell script on my 2.8BSD Bourne shell:
>> read word < foo
>> and it didn't do what I thought it would do...
>> Is it possible to read from files? Is this just a 2.8 bug?
>It's a defect in old Bourne shells... recent (SysV) shells have fixed this.
>Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry
>
YAH (Yet Another Hack) would be to:
a=`cat file`
echo $a
Rick ...!cybvax0[!dmc0]!fbp
"A likely story. I don't believe a word of it."
More information about the Comp.unix
mailing list