in reply to SOLVED Backticks and shell brace expansion
This is on Linux and GNU bash. I think that a real Bourne shell does not have brace expansion.$ touch perl.err perl.tst $ ls perl.* perl.err perl.tst $ perl -e '`rm {perl.err,perl.tst}`'; $ ls perl.* ls: perl.*: No such file or directory
What happens if you do rm {perl.err,perl.tst} in an instance of /bin/sh? Or rather, what happens if you do /bin/sh -c "rm {perl.err,perl.tst}"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Backticks and shell brace expansion
by differenceengine (Novice) on Aug 01, 2011 at 20:55 UTC |