[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
- Why does case-pattern undergo "process substitution"?, shynur ., 2024/08/23
- Re: Why does case-pattern undergo "process substitution"?, Eric Pruitt, 2024/08/23
- Re: Why does case-pattern undergo "process substitution"?, shynur ., 2024/08/23
- Re: Why does case-pattern undergo "process substitution"?,
Lawrence Velázquez <=
- Re: Why does case-pattern undergo "process substitution"?, shynur ., 2024/08/24
- Re: Why does case-pattern undergo "process substitution"?, Eric Pruitt, 2024/08/24
- Re: Why does case-pattern undergo "process substitution"?, Lawrence Velázquez, 2024/08/24
- Re: Why does case-pattern undergo "process substitution"?, Eric Pruitt, 2024/08/24
- Re: Why does case-pattern undergo "process substitution"?, Chet Ramey, 2024/08/26
- Re: Why does case-pattern undergo "process substitution"?, Chet Ramey, 2024/08/26