[Top][All Lists]

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

Re: [Help-bash] pass command to script

From: Chet Ramey
Subject: Re: [Help-bash] pass command to script
Date: Fri, 26 Apr 2019 15:13:59 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/26/19 12:42 PM, Warlich, Christof wrote:
> Chet Ramey wrote:
>> You're just introducing another quoting character
> That's right. But for rather good reason, as I tried my
> very best to explain!
>> with slightly different semantics that requires a separate
>> escaping mechanenism
> Well, that was my main point: As the newly suggested quoting
> would use different characters to start and to end the quoting,
> no escaping would be necessary at all, because the shell
> could easily keep track of the nesting level.

That's not correct. If you want to use the chosen close quote character
in an enclosed command, you have to have a way to quote it. For
completeness, you'd need a way to quote the opening sequence. Once you
have that, you need semantics to remove the quotes, and you're back to
semantic sugar that's little different from $'...'.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden

reply via email to

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