bug-bash
[Top][All Lists]
Advanced

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

Re: Possible problem with ${var%%[...]*}


From: Chet Ramey
Subject: Re: Possible problem with ${var%%[...]*}
Date: Mon, 3 Apr 2023 09:26:51 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 4/2/23 12:54 PM, Oğuz wrote:
2 Nisan 2023 Pazar tarihinde Martin Schulte <gnu@schrader-schulte.de> yazdı:

Hello,

in the following lines I consider dash's behaviour as correct an bash's as
wrong:


Bash expands `<()' as a process substitution. If you escape `<' or `(' it
works fine.

I am surprised that `<()' is not a syntax error when `()' is though.

Because `<()' is a valid word expansion that can appear as part of a word.
`()' is not.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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