Re: bash script error
On 23.05.07 10:27, Alex Samad wrote:
> is it because you shell is running bash and in the script it says sh
> otry changing /bin/sh to /bin/bash
better simply change [[ ]] to [ ], since [[ ]] are bash builtins. See man
test for more informations on what arguments you can use with [ ], but you
surely can use "if [ $high52 = $high ]". Your script will be more compatible
with other systems
> On Tue, May 22, 2007 at 01:55:40PM -0700, L.V.Gandhi wrote:
> > But when it is put in a script file, than command line as
> > #!/bin/sh
> > if [[ $high52 = $high ]]
> > I get error as
> > /home/lvgandhi/bin/gethilo: 12: [[: not found
> > Any suggestions please?
Matus UHLAR - fantomas, email@example.com ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Eagles may soar, but weasels don't get sucked into jet engines.