[comp.sys.ibm.pc] parsing "|"

tarvaine@tukki.jyu.fi (Tapani Tarvainen) (07/31/89)

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)