eval{"$cmd"}That's true if "$cmd" is true. If you want to evaluate $cmd, then write:
eval $cmd
In reply to Re^3: File testing via list of test operators
by JavaFan
in thread File testing via list of test operators
by robh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |