- Why do I get an error when commands stored in the variable are being executed?
#!/bin/sh CMDSTR=$* $CMDSTR exit 0
# ./example.sh "( cd /tmp ; pwd ; ls -la )" ./example.sh: line 4: (: command not found
- Red Hat Enterprise Linux All
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.