Matthew Schalit wrote:

> Yes I see it now that you quoted the offending command.
> The syntax is crap :)
> 
> Wrong
> ---------
> ifconfig $IFNAME $IPADDR ${MASK:+netmask $MASK} ${ETHER:+hw $ETHER} 
>${BROADCAST:+broadcast $BROADCAST} $STATE
> 
> Correct
> ----------
> ifconfig $IFNAME $IPADDR ${MASK:+netmask} $MASK ${ETHER:+hw} $ETHER 
>${BROADCAST:+broadcast} $BROADCAST $STATE

Should be no difference in these two, except extra spaces in your
version.

${MASK:+netmask $MASK}

...should return...

netmask XXX.XXX.XXX.XXX

...if set, and nothing if not set.

${MASK:+netmask} $MASK

...returns the same thing when set.

> I tried this on the Oxygen machine in my own test script and
> it works my way but fails David's way.  Set -x didn't show
> any difference in the command that was to be run.

I wonder if it could be a problem in splitting of arguments? 
Perhaps....

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to