On Wed, Sep 14, 2011 at 02:02, Ulrich Mueller wrote:
> On Tue, 13 Sep 2011, Mike Frysinger wrote:
>> usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; }
>
> You should omit the colons though. ${2-yes} and ${3-no} will allow for
> an explicit empty string as argument, whereas the :- variants won't.in my original use, i wanted the :- behavior. but i can see how the - behavior would be generally more flexible. -mike
