[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [[...]] documentation claims tilde expansion and process substitutio
From: |
Chet Ramey |
Subject: |
Re: [[...]] documentation claims tilde expansion and process substitution occur within double quotes |
Date: |
Sun, 28 Apr 2024 13:21:07 -0400 |
User-agent: |
Mozilla Thunderbird |
On 4/26/24 5:36 PM, Lawrence Velázquez wrote:
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.)
Yes, the parenthesized text is wrong. I can't remember why I added it.
--
``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature