[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Command substitution
From: |
Dale R. Worley |
Subject: |
Command substitution |
Date: |
Tue, 02 Jun 2020 21:44:45 -0400 |
Naively, I expect that
FOO="$( command2 )"
command1 $FOO
has the same effect as
command1 $( command2 )
and
FOO="$( command2 )"
command1 "$FOO"
has the same effect as
command1 "$( command2 )"
Has anyone pushed the boundaries of this and can tell me whether there
are gotchas?
Dale
- Command substitution,
Dale R. Worley <=