help-bash
[Top][All Lists]
Advanced

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

Re: Why does case-pattern undergo "process substitution"?


From: Lawrence Velázquez
Subject: Re: Why does case-pattern undergo "process substitution"?
Date: Fri, 23 Aug 2024 18:45:58 -0400

On Fri, Aug 23, 2024, at 6:06 PM, shynur . wrote:
>> Eric:
>> my guess would be is that it's a consequence of the
>> parser, and it's simpler to inherit the behavior
>> whereas removing it specifically for case patterns
>> would require a deliberate change in the code.
>
> If so, I think this will happen to both _word_ and
> _pattern_.  But the manual doesn't say _word_
> will undergo “process substitution”.

The manual may not say it, but the man page does.

https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.1?h=bash-5.2#n909

And the behavior is easily confirmed.

$ case <(:) in '<(:)') echo not expanded;; *) echo expanded;; esac
expanded

-- 
vq



reply via email to

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