Phil Sutter dixit:
>On Tue, Jan 23, 2007 at 11:14:50PM +0100, [EMAIL PROTECTED] wrote:
>> * this is a #!/bin/sh script, so '${foo:-bar}' is not
>> portable, cf. *(autoconf)Portable Shell::
>
>Sorry, but I think I have to remind you of our english only policy
>regarding commit messages. It surely may be my fault, but seems like my
>brain's just not big enough to understand everything you wrote after the
>comma?! Wbx couldn't figure it out either, so at least not everything's
>lost :-P
baz=${foo:-bar} is the same as
if [[ -n $foo ]]; then
baz=$foo
else
baz=bar
fi
The thing in the second line is a texinfo reference.
//mirabile
--
"Using Lynx is like wearing a really good pair of shades: cuts out
the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
-- Henry Nelson, March 1999
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers