bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] return at top-level after funsub


From: Grisha Levit
Subject: [PATCH] return at top-level after funsub
Date: Tue, 28 Nov 2023 01:03:22 -0500

Calling `return' after a funsub outside of a function or `.' context
doesn't behave correctly:

$ bash -c '${ :; }; (return 2); echo $?'
2

$ bash -c '${ :; }; return'
Segmentation fault

Attachment: 0001-fix-return-after-funsub.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]