Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: ksh(1) bug? Keywords: ksh korn shell Message-ID: <12456@smoke.BRL.MIL> Date: 28 Mar 90 22:28:17 GMT References: <710@gtenmc.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <710@gtenmc.UUCP> stumpf@gtenmc.UUCP (Jon S. Stumpf) writes: > ls | > tmp >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. However, the Korn shell attempts to be upward compatible with the Bourne shell, which doesn't really have a rigorous grammar (although it comes much closer than the Cshell). In the Bourne shell, >tmp is the easiest way to create a 0-length file.