Mike Frysinger wrote:
> On Wednesday 14 October 2009 05:08:08 Cappelletti Fabio wrote:
> > Hi all, I'm tying to  write a simple hush script , but I have a lot of
> > problem with two commands : expr and cat!
> > In particula my script is as follow:
> > #!/bin/hush
> > A= `cat /proc/driver/cardtype/BoardAddr`
> > B= `expr $A \* 2`
> > C= `expr $B -1`
> 
> you know you cant go sticking whitespace wherever you like, right ?  shell 
> scripts are not make files -- whitespace around the "=" matters.

That's right.  Remove the space after "=" and the script should work.

Still, it indicates a bug in hush, because A= `cat
/proc/driver/cardtype/BoardAddr` is a valid command, even though it's
not the command you thought.

-- Jamie
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to