help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] confused by command substitution...


From: Alfred M. Szmidt
Subject: Re: [Help-bash] confused by command substitution...
Date: Mon, 11 Feb 2019 11:45:54 -0500

   > I'm not understanding the difference here, or why the last example
   > works.  Anyone got a good explanation?

   When the subshell is enclosed in a string, then its output is executed
   as a command in this context.  Otherwise, the subshell is treated as the
   command to `if' and its exit code is used.

Ah ha, that makes sense now.  Thanks for the explanation!



reply via email to

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