Date: Wed, 26 Sep 2001 01:37:19 -0400 From: Brian T.Schellenberger <bts@babbleon.org> To: Giorgos Keramidas <charon@labs.gr> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: silly sed question Message-ID: <0109260137190E.00588@i8k.babbleon.org> In-Reply-To: <20010926073231.C1466@hades.hell.gr> References: <1001421024.3bb078e00bc61@webmail.neomedia.it> <01092509275503.00814@i8k.babbleon.org> <20010926073231.C1466@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting in csh & derivatives is terrible. There's actually a variable like "fixquotes" or something you can use in tcsh to make it more sane. But I've been using csh for a long, long time now (1981? Certainly since before 1984), and I don't think I'll be switching anytime soon. When I relocate to heaven I might consider alternatives, but until then . . . On Wednesday 26 September 2001 00:32, Giorgos Keramidas wrote: > Brian T.Schellenberger <bts@babbleon.org> wrote: > > Here's what I do to work around this. > > > > In startup scripts, I > > > > setenv S '$' > > setenv Q "'" > > setenv QQ '"' > > > > Then I do things like this with > > > > sed -e "/^TARGETS/ s/$Q$S/ blob4$Q/" myfile > > > > Good luck. > > Seems to work nicely that way. Thanks! > I'll stick to zsh for the moment though. > Years of working with Bourne shells have made me reluctant to switch. > > -giorgos ---------------------------------------- Content-Type: application/pgp-signature; charset="us-ascii"; name="Attachment: 1" Content-Transfer-Encoding: 7bit Content-Description: ---------------------------------------- -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org --------------------> Free Dmitry Sklyarov! <------------------------- http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0109260137190E.00588>