home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!pyrltd!saturn!dave
- From: dave@tetra.co.uk (David Sussman)
- Newsgroups: comp.unix.shell
- Subject: Korn shell and file descriptors
- Message-ID: <1548@tetra.co.uk>
- Date: 25 Aug 92 09:43:57 GMT
- Organization: Tetra Ltd., Maidenhead, UK
- Lines: 16
-
-
- I have an interesting Korn Shell problem. I have a script containing:
-
- echo stream 1 >&1
- echo stream 2 >&2
- echo stream 3 >&3
- echo stream 4 >&4
-
- Under the Bourne Shell this works ok, but the Korn Shell produces:
-
- stream 1
- stream 2
- ./ksh[3]: 3: bad file unit number
- ./ksh[4]: 4: bad file unit number
-
- Why?
-