[Top][All Lists]

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

Re: Redirecting error message from ${parameter:?word}

From: Michael Siegel
Subject: Re: Redirecting error message from ${parameter:?word}
Date: Tue, 14 Jan 2020 19:17:34 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.3.0

Am 12.01.20 um 07:37 schrieb Eli Schwartz:
> It should suffice to use any compound command; the simplest would be to
> use { cmd; } 2>/dev/null
> No subshell needed, which it seems is something the OP cared about.

Exactly, that's what I was looking for.

But why does this work? I mean, I get why redirecting the shell's error
stream works when using a subshell. But how does using a compound
command lead to masking the expansion error?


reply via email to

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