[TUHS] Use of "{}" in the Shell?
Chet Ramey via TUHS
tuhs at tuhs.org
Thu Aug 6 00:04:37 AEST 2026
On 8/4/26 4:35 PM, jason-tuhs--- via TUHS wrote:
>
>> Then why does
>> echo me; echo $$
>> ( echo parens ; echo $$ ; )
>> { echo brace; echo $$ ; }
>>
>> Always echo the same pid?
>
> This is a special case.
This is the rationale for $BASHPID.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet at case.edu http://tiswww.cwru.edu/~chet/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20260805/e0dd49cc/attachment.sig>
More information about the TUHS
mailing list