On 12/18/21 8:07 AM, yesxorno via Bug reports for the GNU Bourne Again
SHell wrote:
> When 'exit' is executed in a function called to "in-line" its output to
> stdout, the 'exit' acts like return, leaving the function scope, but
not > terminating the bash process.
I assume by "in-line" you
x=$( exit 2 ) ; printf $?\\n
On Sat, Dec 18, 2021, 17:03 Kerin Millar wrote:
> On Sat, 18 Dec 2021 13:07:03 +
> yesxorno via Bug reports for the GNU Bourne Again SHell
> wrote:
>
> > Description:
> >
> > When 'exit' is executed in a function called to "in-line" its output to
> stdout, the '
On Sat, 18 Dec 2021 13:07:03 +
yesxorno via Bug reports for the GNU Bourne Again SHell
wrote:
> Description:
>
> When 'exit' is executed in a function called to "in-line" its output to
> stdout, the 'exit' acts like return, leaving the function scope, but not
> terminating the bash proces
you execute it in a separate bash subshell via $( .. )
this code parsing layer u bring to exit
On Sat, Dec 18, 2021, 16:50 yesxorno via Bug reports for the GNU Bourne
Again SHell wrote:
> (Composed using 'bashbug')