Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!kth!draken!tut!tukki!tarvaine From: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Newsgroups: comp.sys.ibm.pc Subject: parsing "|" Keywords: quotes, command line parsing Message-ID: <1075@tukki.jyu.fi> Date: 31 Jul 89 10:30:33 GMT Reply-To: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Organization: University of Jyvaskyla, Finland Lines: 28 Can anybody explain, or better yet tell how to circumvent, the following odd behaviour of command.com: When I type FIND "|" file it works just as I expect (list lines in file with a | in them), but when I try FIND "|" file | more I get FIND: Syntax error Bad command or file name Redirecting the output to a file with > works OK. How does command.com parse | and quotes? Is there a way to pass a string containing | as an argument to a program and then pipe the output? I'm using DOS 3.30A; I tried 3.21 too, with identical results. Does this happen with DOS 4.0? What about OS/2? -- Tapani Tarvainen (tarvaine@jyu.fi, tarvainen@finjyu.bitnet)