9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bengt Kleberg <bengt.kleberg@ericsson.com>
To: 9fans@cse.psu.edu
Subject: [9fans] quouteing(?) problems in rc
Date: Wed, 30 Jan 2008 12:18:45 +0000	[thread overview]
Message-ID: <pan.2008.01.30.12.07.36.725653@ericsson.com> (raw)

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."


             reply	other threads:[~2008-01-30 12:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 12:18 Bengt Kleberg [this message]
2008-01-30 13:04 ` roger peppe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2008.01.30.12.07.36.725653@ericsson.com \
    --to=bengt.kleberg@ericsson.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).