Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16355
| From | worley@alum.mit.edu (Dale R. Worley) |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Command substitution |
| Date | 2020-06-02 21:44 -0400 |
| Message-ID | <mailman.1029.1591148692.2541.bug-bash@gnu.org> (permalink) |
| References | <87mu5kgbxu.fsf@hobgoblin.ariadne.com> |
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
Back to gnu.bash.bug | Previous | Next | Find similar
Command substitution worley@alum.mit.edu (Dale R. Worley) - 2020-06-02 21:44 -0400
csiph-web