On Fri, Sep 15, 2000 at 11:25:31AM -0700, Steve Fink wrote:
> I agree. I'd like q/.../ to stick as close to giving me ... as possible.
> I can live with the current 'foo\\bar' having only one backslash in it,
> but I'd rather not have to worry about anything else. I'd vote for
> Glenn's allowing the disabling of interpolation in qq// and <<""
> instead.
>
> Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?
Not at all. I can't count the number of times I have railed against bash
for deciding that you cannot escape ' inside ' (e.g. 'foo\'s bar'). Being
unable to escape \ would cause similar grief (e.g. 'foo bar\\').
This is incredibly annoying when doing Perl one-liners especially; one is
forced to use single quotes so that bash doesn't attempt to interpolate
variables itself. Unfortunately, one can't use single quotes internally
unless you say \047 or its equivalent (which I nearly always have to go look
up), or q{} if you're quoting something. q{} has saved my sanity more than
once.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
- Re: RFC 226 (v2) Selective interpolation in sin... Damian Conway
- Re: RFC 226 (v2) Selective interpolation in... Glenn Linderman
- Re: RFC 226 (v2) Selective interpolation in single quoti... Glenn Linderman
- Re: RFC 226 (v2) Selective interpolation in single ... Philip Newton
- Re: RFC 226 (v2) Selective interpolation in single ... Bart Lateur
- Re: RFC 226 (v2) Selective interpolation in single quoti... Philip Newton
- Re: RFC 226 (v2) Selective interpolation in single quoti... Andy Dougherty
- Re: RFC 226 (v2) Selective interpolation in single ... Nathan Wiger
- Re: RFC 226 (v2) Selective interpolation in sin... Steve Fink
- Re: RFC 226 (v2) Selective interpolation in... Bart Lateur
- Re: RFC 226 (v2) Selective interpolation in... Michael Fowler
- Re: RFC 226 (v2) Selective interpolation in... Philip Newton
- Re: RFC 226 (v2) Selective interpolation in single quoti... Brad Hughes
- Re: RFC 226 (v2) Selective interpolation in single quoti... Jerrad Pierce
- Re: RFC 226 (v2) Selective interpolation in single ... Jarkko Hietaniemi
- Re: RFC 226 (v2) Selective interpolation in single quoti... Jerrad Pierce
