Xref: utzoo comp.unix.wizards:19391 comp.unix.questions:17791 Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!gem.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Question about GETOPT(3) Message-ID: <7043@ficc.uu.net> Date: 17 Nov 89 22:20:38 GMT Article-I.D.: ficc.7043 References: <2186@ektools.UUCP> <47040@bbn.COM> <17166@rpp386.cactus.org> <1989Nov3.110330.27751@gdt.bath.ac.uk> <1989Nov7.000009.23547@virtech.uucp> <1989Nov15.183752.19153@gdt.bath.ac.uk> Reply-To: peter@ficc.uu.net (Peter da Silva) Organization: Xenix Support, FICC Lines: 22 a Syntactical Brainstorm: What syntax should the shell use for /dev/stdin? You can't use -, other programs already use it for other things. Well, what syntax does the shell (bourne shell) use for file descriptors? command file # file is an argument to command command > file # file is a place to redirect stdout command 2> file # file is a place to redirect stderr command 2>&1 # stdout is a place to redirect stderr Aha! command &1 # stdout is an argument to command. So: command &n gets expanded to /dev/fd/n...? -- `-_-' Peter da Silva . 'U` -------------- +1 713 274 5180. "vi is bad because it didn't work after I put jelly in my keyboard." -- Jeffrey W Percival (jwp@larry.sal.wisc.edu)