Re: [PATCH] "test" in Solaris' /bin/sh does not support -e
- From
- Dennis Stosberg <dennis@stosberg.net>
- Date
- Jun 26, 2006, 10:04 UTC
- Message-ID
- <20060626100402.G5761a3ea@leonov.stosberg.net>
- In-Reply-To
- <20060626094211.G3b49c5c3@leonov.stosberg.net>
Dennis Stosberg wrote:
> A lot of bashisms have been removed from the shell scripts since > that SHELL_PATH override was added in September 2005; I will have a > look whether it's still necessary.
Solaris is really horrible sometimes. "/bin/sh" is linked to "/usr/bin/sh". The manual sh(1) reads:
The /usr/bin/sh utility is a command programming language
that executes commands read from a terminal or a file.The /usr/xpg4/bin/sh utility is a standards compliant shell.
Argh! Why don't they put their "standards compliant" shell to /bin/sh? The current one doesn't even support the $( )-style command substitution, so making the scripts run with that shell would be _really_ ugly.
Regards, Dennis