|
| From: | Chet Ramey |
| Subject: | Re: segfault in for(()) loop |
| Date: | Mon, 24 Jul 2023 13:16:23 -0400 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
Bash Version: 5.2
Patch Level: 15
Release Status: release
Description:
Segmentation fault in 'for ((...))' loop
Repeat-By:
z='';for((;$z;));do echo;done
without spaces in ;$z;
in bash 5.1.4 -- works ok, in bash 5.2.15 -- segmentation fault
Thanks for the report. This was fixed several months ago.
--
``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/
| [Prev in Thread] | Current Thread | [Next in Thread] |