bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameter expansion oddity


From: Bill Nottingham
Subject: Re: Parameter expansion oddity
Date: Tue, 8 Jul 2003 11:31:22 -0400
User-agent: Mutt/1.2.5.1i

Chet Ramey (address@hidden) said: 
> > Bash Version: 2.05b
> > Patch Level: 0
> > Release Status: release
> > 
> > Description:
> >     ${VAR:+WORD} may be replaced by the expansion of WORD.  But there
> >     seems to be no way of creating double quotes in this expansion, since
> >     both quote removal and escaping behave oddly.
> 
> Are you wedded to using here documents?  Remember that here-docs are expanded
> as if the contents occur within double quotes, but that double quotes within
> the document aren't treated specially.

For this app, yes, it would be irritating to not be able to use here-docs
(the alternative is writing temporary files and piping those through
commands.)

Bill




reply via email to

[Prev in Thread] Current Thread [Next in Thread]