Re: [PATCH] fix [[ -t X ]] segfault

2023-09-13 Thread Chet Ramey
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

[PATCH] fix [[ -t X ]] segfault

2023-09-08 Thread Grisha Levit
_node code -- so the above now has an exit status of 2 like the test builtin. From 6e5be14727843d441f7c69a6e49473eabf049a9a Mon Sep 17 00:00:00 2001 From: Grisha Levit Date: Fri, 8 Sep 2023 11:10:16 -0400 Subject: [PATCH] fix [[ -t X ]] segfault Since the change that made `test -t FD' report an