Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!mailrus!tut.cis.ohio-state.edu!ucbvax!NIWOT.UCAR.EDU!era From: era@NIWOT.UCAR.EDU Newsgroups: comp.sys.pyramid Subject: read bug in 4.4 /bin/sh? Message-ID: <8903201700.AA00197@era.ucar.edu.UCAR.EDU> Date: 20 Mar 89 17:00:17 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 Does anybody out there know what i/o redirection with the Bourne shell's read command is *supposed* to do? The following shell script reads the first word from itself into the variable x and echoes it under SunOS 4.0. However, it hangs under OSx4.4 and Ultrix 2.2; if you type a line at it while it's hung, it belches out "$0: illegal io". Anybody know who's "right"? -------- #!/bin/sh read x < $0 echo x = $x -------- Ed Arnold, NCAR era@ncar.ucar.edu