Article View: news.software.readers
Article #2401Problems specifying regexps when shelling out of trn
From: Tim Pierce
Date: Sun, 25 Oct 1992 19:07
Date: Sun, 25 Oct 1992 19:07
17 lines
1630 bytes
1630 bytes
I've run into an odd problem when forking a new shell from trn with the "!" command. If I attempt to specify certain regular expressions in the shell command, for example "grep '^comp' /usr/lib/news/active", I get no output whatsoever. Apparently the regexp is being munged before the command has a chance to be executed. I've tried "^comp" surrounded by single quotes, double quotes, and neither. I don't have any problems using $ or other metacharacters. At one point I tried "!echo grep '^comp' /usr/lib/news/active" to see what that would do, and it spat back "grep omp /usr/lib/news/active". But if that's how the grep command is coming out, it should give me *some* output, even if it's not what I really want. Any ideas? -- ____ Tim Pierce / "You are just naive and repressed because \ / twpierce@unix.amherst.edu / penis envy is here and it's now and it's \/ (BITnet: TWPIERCE@AMHERST) / all around you." -- Neal C. Wickham
Technical Details
Message-ID:
<BwoyGv.78@unix.amherst.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!news.amherst.edu!twpierceShow Full Headers
Complete Article Headers
Message-ID: <BwoyGv.78@unix.amherst.edu> Subject: Problems specifying regexps when shelling out of trn Date: Sun, 25 Oct 1992 19:07:42 GMT From: twpierce@unix.amherst.edu (Tim Pierce) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!news.amherst.edu!twpierce Newsgroups: news.software.readers Organization: Amherst College, Amherst MA Lines: 17