[ug-bosug] Problem with executing shell scripts in opensolaris

Manish Chakravarty manishchaks at gmail.com
Tue Jun 12 00:10:49 PDT 2007


Hi Srikanth,

> Am executing few shell script for my project. But bash is giving error
> for
> using ' ARRAY ' and ' IF '
> statements. Wat may be the reason for this??
>
> Am using the OS : sol-nv-b60
Are you sure you are invoking it with bash?

Unlike in (most distributions of) linux, sh is _not_ a symbolic link to bash
so if you put a "#!/bin/sh" and put in bash syntax, it *will* break in
Solaris.
or if  you invoke a bash shell script with "sh your_script.sh" , again
it will break.

It could be helpful if you provide us with your shell script. (and how
you invoked it).

Thanks
Manish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: manishchaks.vcf
Type: text/x-vcard
Size: 410 bytes
Desc: not available
Url : http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20070612/1d4a9492/attachment.vcf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20070612/1d4a9492/attachment.bin 


More information about the ug-bosug mailing list