help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Root access in subshell


From: Richard Taubo
Subject: Re: [Help-bash] Root access in subshell
Date: Tue, 4 Feb 2014 09:24:34 +0100

On Feb 4, 2014, at 12:21 AM, Seth David Schoen <address@hidden> wrote:
—snippet—
> Richard Taubo writes:
> 
>> Sorry for the unclarity.
>> I meant: Return the *result* of the command in the subshell to the main 
>> shell.
> 
> I think for most people who work with bash, the term "result" means the
> numeric return code of the subshell command.
> 
> $ (echo foo; exit 3)
> foo
> $ echo $?
> 3

OK, good to know!

Thanks!

Best regards,
Richard Taubo





reply via email to

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