On 8/7/07, Brian Paul <[EMAIL PROTECTED]> wrote:
>
> Bash was needed for the line:
>        @ if [ -e configs/current ] ; then
>
> is
>        @ if `test -e configs/current ` ; then
>
> a suitable replacement for sh?

Man, solaris sh sucks. Do you know specifically what the error was? In
the second one, you don't need to do the command substitution (``)
since you can just use the return from test in the conditional:

if test -e configs/current; then

Actually, I think the problem here is that `test' on Solaris sh can't
handle -e. Just use -f instead. It respects real files or symlinks.

$ ./sh
$ touch foo
$ ln -sv foo bar
`bar' -> `foo'
$ [ -e bar ]
test: argument expected
$ [ -f bar ]
$ echo $?
0

It might be best if you just add SHELL = /bin/bash to the sunos*
configs since that's really where the issues are. Any linux host will
have a POSIX compliant /bin/sh that will handle most of the stuff you
want. Solaris /bin/sh is the old Bourne shell, I think. If you want to
mess around with the Solaris sh, you can use this (that's what I used
for the test above):

http://heirloom.sourceforge.net/sh.html

--
Dan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to