Path: utzoo!utgpu!water!watmath!mks!wheels From: wheels@mks.UUCP (Gerry Wheeler) Newsgroups: comp.sys.ibm.pc Subject: Re: GNU awk (gawk) on MS-DOS Summary: hmmm, a correction to a previous msg Keywords: awk gnu gawk Message-ID: <458@mks.UUCP> Date: 24 May 88 22:02:12 GMT References: <1455@titan.camcon.uucp> <11573@ut-sally.UUCP> <2347@rayssd.ray.com> <454@mks.UUCP> Organization: Mortice Kern Systems, Waterloo, Ont. Lines: 27 In article <454@mks.UUCP>, I wrote: > One of the difficulties we find when people buy our MKS Awk for DOS is > that command line programs such as: > > awk "$3 > 0 {print $0}" somefile > > will fail because command.com assumes the '>' means you want to do > redirection of output. I have since received mail noting that this has not been the case since version 3.1. It seems the newer versions of command.com will properly ignore '>' and '<' when placed within quotes. The same person said it would ignore '|' too, but my tests indicate otherwise. Has anybody else tried this? My test was: C> dir | egrep "DIR|foo" (using egrep from the MKS Toolkit, naturally). Command.com gave the error "bad command or file name". I presume it was trying to find and execute foo. -- Gerry Wheeler Phone: (519)884-2251 Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels 35 King St. North BIX: join mks Waterloo, Ontario N2J 2W9 CompuServe: 73260,1043