[H-GEN] regular expressions

Bruce Campbell bc at humbug.org.au
Mon Aug 21 04:08:51 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

On Mon, 21 Aug 2000, Martin Pool wrote:

mbp> On Sat, Aug 19, 2000 at 09:10:36AM +1000, Jason Henry Parker wrote:
mbp> 
mbp> > I always trap my sed expressions in forward-quotes to hide them
mbp> > completely from the shell.  [ObPeeve:  forward quotes cannot be
mbp> > escaped from bash _at all_.]
mbp> 
mbp> Perhaps I misunderstand you, but
mbp> 
mbp>   $ echo I think jason\'s wrong

$ echo No matter which quotes you use, whether \"double\", \'single\' \
  in either \`direction\`, they can all be \\escaped under bash\(1\) . \
  And you can "do this inside \"another\" string like \'this\' ".

-- 
  Bruce.                                                         | VP/BOFH
  Infinite Monkeys.  Infinite Keyboards.  I see no Shakespeare.  |  HUMBUG
  Usenet may or may not be an implementation of RFC2795.         |     PAN


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list