help-bash
[Top][All Lists]
Advanced

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

Re: Invoking multiple commands that use $? for function return status


From: Alex fxmbsw7 Ratchev
Subject: Re: Invoking multiple commands that use $? for function return status
Date: Wed, 1 Dec 2021 14:50:35 +0100

in particular

when I invoke multiple instances of $? simultaneously using different
console terminals

cant make sense of that

On Wed, Dec 1, 2021, 14:49 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:

> i dont understand you latter part, but maybe, 'saving $? after return to a
> var' does for you
>
> On Wed, Dec 1, 2021, 14:38 fatiparty--- via <help-bash@gnu.org> wrote:
>
>> I have been coding some bash functions that return an exit status.  Then
>> calling $? to get the return value and act appropriately.  But I am
>> suspecting problems when I invoke multiple instances of $? simultaneously
>> using different console terminals.  I would be grateful on some ideas of
>> how to handle such circumstances.
>>
>>


reply via email to

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