[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[[...]] documentation claims tilde expansion and process substitution oc
From: |
Lawrence Velázquez |
Subject: |
[[...]] documentation claims tilde expansion and process substitution occur within double quotes |
Date: |
Fri, 26 Apr 2024 17:36:11 -0400 |
User-agent: |
Cyrus-JMAP/3.11.0-alpha0-386-g4cb8e397f9-fm-20240415.001-g4cb8e397 |
Both the manual [1] and man page [2] state:
The words between the [[ and ]] do not undergo word splitting
and filename expansion. The shell performs tilde expansion,
parameter and variable expansion, arithmetic expansion,
command substitution, process substitution, and quote removal
on those words (the expansions that would occur if the words
were enclosed in double quotes).
However, the parenthetical is misleading because tilde expansion
and process substitution don't occur within double quotes. (I just
helped an IRC user who'd been confused by this text.)
[1]
https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bashref.texi?h=devel&id=9c430f6bf37984e01977cc17f7066a6498aa4f18#n1153
[2]
https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.1?h=devel&id=9c430f6bf37984e01977cc17f7066a6498aa4f18#n762
--
vq
- [[...]] documentation claims tilde expansion and process substitution occur within double quotes,
Lawrence Velázquez <=