[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why does case-pattern undergo "process substitution"?
From: |
shynur . |
Subject: |
Why does case-pattern undergo "process substitution"? |
Date: |
Fri, 23 Aug 2024 19:47:43 +0000 |
Hi, friends~
I'm reading the Bash Reference Manual, section 3.2.5.2.
Here: <https://gnu.org/s/bash/manual/html_node/Conditional-Constructs.html>.
case _word_ in
[ [(] _pattern_ [| _pattern_]…) _command-list_ ;;]…
esac
Each _pattern_ undergoes tilde expansion, parameter
expansion, command substitution, arithmetic expansion,
process substitution, and quote removal.
^^^^^^^^^^^^^^^^^^^^
I'm confused. Why is "process substitution" being performed here?
The result is often unforeseen, e.g., '/dev/fd/13', '/dev/fd/42'...
Can anyone give me a practical example? Thanks in advance!
--
shynur
[[ Sorry, I accidentally sent this email to the bug-bash ]]
[[ mailing list earlier. Embarrassed... ]]
- Why does case-pattern undergo "process substitution"?,
shynur . <=
- 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, 2024/08/23
- 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