9fans archive / 2008 / 01 / 533 /    prev next

From: Bengt Kleberg <bengt.kleberg@eri...>
Subject: [9fans] quouteing(?) problems in rc
Date: Wed, 30 Jan 2008 12:18:45 GMT

Greetings,

I am using rc from plan9port on Linux and I am trying to construct a grep
command. This is what I have so far:

	file = nibsRouteMib.erl
	func = create_ok
	echo		grep -n -e '''' ^  '^' ^ $func ^ '''' $file /dev/null
	grep -n -e '''' ^  '^' ^ $func ^ '''' $file /dev/null

The echo is only there to test what the command looks like. If I run
the above lines I get:

grep -n -e '^create_ok' nibsRouteMib.erl /dev/null
file: exit 1


If I run the line I got from the echo (grep -n -e '^create_ok'
nibsRouteMib.erl /dev/null) I get:

nibsRouteMib.erl:522: create_ok( Row_index, _Columns ) ->


Since the echo'ed line works fine but not the very similar line below, I
must have made a mistake somewhere and wonder if somebody can spot it and
tell me?


bengt

-- 
Those were the days...
   EPO guidelines 1978: "If the contribution to the known art resides
   solely in a computer program then the subject matter is not
   patentable in whatever manner it may be presented in the claims."