[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] don't close stdin with var=x; exec {var}>&-
From: |
Chet Ramey |
Subject: |
Re: [PATCH] don't close stdin with var=x; exec {var}>&- |
Date: |
Mon, 10 Apr 2023 09:23:01 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 |
On 4/6/23 1:04 PM, Grisha Levit wrote:
If $var is non-empty and not a valid a number, {var}>&- silently closes fd
0.
Thanks for the report. The check should be == 0.
--
``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/