[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix [[ -t X ]] segfault
From: |
Chet Ramey |
Subject: |
Re: [PATCH] fix [[ -t X ]] segfault |
Date: |
Wed, 13 Sep 2023 10:22:21 -0400 |
User-agent: |
Mozilla Thunderbird |
On 9/8/23 12:36 PM, Grisha Levit wrote:
Since the change that made `test -t FD' report an error for non-numeric
values of FD:
$ [[ -t X ]]
bash: [[: X: integer expected
Segmentation fault
Thanks for the report and patch.
Chet
--
``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/