Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hou3c.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!harpo!ulysses!mhuxl!houxm!hocda!hou3c!ka From: ka@hou3c.UUCP (Kenneth Almquist) Newsgroups: net.unix Subject: Re: Bourne shell programming question... Message-ID: <571@hou3c.UUCP> Date: Mon, 14-May-84 14:21:09 EDT Article-I.D.: hou3c.571 Posted: Mon May 14 14:21:09 1984 Date-Received: Wed, 16-May-84 07:12:36 EDT References: <250@rna.UUCP> Organization: Bell Labs, Holmdel, NJ Lines: 14 To: dan@rna.UUCP If you have the line(1) program, you can read a line from the terminal by saying: a=`line < /dev/tty` As you point out, it is also possible to use exec to redirect the standard input (allowing you to use read). You can move stdin to a different file descriptor first if you will need it later: exec 3<&0