Path: utzoo!attcan!uunet!pilchuck!dataio!gtenmc!stumpf From: stumpf@gtenmc.UUCP (Jon S. Stumpf) Newsgroups: comp.unix.questions Subject: ksh(1) bug? Keywords: ksh korn shell Message-ID: <710@gtenmc.UUCP> Date: 28 Mar 90 16:24:31 GMT Organization: GTE Telecom Inc., Bothell, WA Lines: 16 By mistake I typed a pipeline with a missing command similar to the following: ls | > tmp Obviously, I am missing a command after the pipe (eg. sort). Looking at the grammar on page 310-311 in "The Korn Shell" by Bolsky and Korn, I believe that a "command" cannot reduce into nothing. This would indicate to me that I should receive some kind of syntax error. Instead, tmp is created and has zero length. I am running /bin/ksh, Version 11/16/88b. Is this an error or am I reading the grammar wrong? -- jss - Jon S. Stumpf