It is currently Sat, 09 Dec 2023 04:31:52 GMT



 
Author Message
 csh/grep problem (on Linux)
In comp.os.linux.misc Roy Gordon <r...@shell1.ncal.verio.net> wrote:

No need to.  The problem is fixed in a later version
(csh-5.2.6-6.i386.rpm) of the same package.

With that installed instead of csh-5.2.6-2.i386.rpm, I now get:

   $ csh -x
   [jww@olorin]$ grep '^asd' xxx1 xxx2
   grep ^asd xxx1 xxx2
   xxx1:asdf
   [jww@olorin]$ grep '^asd' xxx*
   grep ^asd xxx1 xxx2
   xxx1:asdf

Ask the administrator of bolt to upgrade or to replace /bin/csh with a
link to tcsh (uninstalling csh-5.2.6-2 seems to do that)--or switch to
tcsh yourself.

--
John Wingate                                       wing...@worldpath.net



 Mon, 24 Jun 2002 03:00:00 GMT   
 csh/grep problem (on Linux)
In article <u58d4.10238$Ce.169...@monger.newsread.com>,
John Wingate  <wing...@worldpath.net> wrote:

Is there an explanation of what caused the problem in the first place?  I
still don't see how it can happen, unless csh is spontaneously inserting
backslashes into the parameter, i.e. it's rewriting

grep '^foo' j*

to:

grep '\^foo' j*

--
Barry Margolin, bar...@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



 Mon, 24 Jun 2002 03:00:00 GMT   
 csh/grep problem (on Linux)
In comp.os.linux.misc Barry Margolin <bar...@bbnplanet.com> wrote:

It's actually rewriting it to:

   grep \^\f\o\o junk1 junk2

See an earlier post of mine in this thread
(<tLUc4.48180$xC4.477...@newshog.newsread.com>) for an example using
"csh -x" to show the rewriting.

--
John Wingate                                       wing...@worldpath.net



 Tue, 25 Jun 2002 03:00:00 GMT   
 csh/grep problem (on Linux)

tcsh may not be 100% csh compatible - I'm not sure - but if it isn't,
you must be using some pretty arcane csh features, which probably isn't
a good idea anyway :)  tcsh is much better for interactive use: it has
wonderful command completion functionality.  I avoid /bin/csh where
possible (and my scripts are in /bin/sh.)

--
Reinier Post



 Tue, 25 Jun 2002 03:00:00 GMT   
 
   [ 19 post ]  Go to page: [1] [2]

Similar Threads


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software