${var-$default} vs. ${var=$default} (was: Re: [PATCHES] Bootstrap: Allow user overriding of $AUTOCONF and $PERL.)

2010-07-27 Thread Stefano Lattarini
[Removing automake-patches from CC] At Tuesday 27 July 2010, Eric Blake wrote: > On 07/27/2010 03:37 PM, Stefano Lattarini wrote: > >>> I'm used to this variant, with less typing: > >>> : ${AUTOCONF=autoconf} > >>> > >>> But your way works, too. > > > > Can you confirm it's as portable as the wa

Re: [PATCHES] Bootstrap: Allow user overriding of $AUTOCONF and $PERL.

2010-07-27 Thread Eric Blake
On 07/27/2010 03:37 PM, Stefano Lattarini wrote: >>> I'm used to this variant, with less typing: >>> : ${AUTOCONF=autoconf} >>> >>> But your way works, too. > Can you confirm it's as portable as the ways suggested in the autoconf > manual? If yes, do you think it could be an useful addition to th

Re: [PATCHES] Bootstrap: Allow user overriding of $AUTOCONF and $PERL.

2010-07-27 Thread Stefano Lattarini
Hi Eric. At Tuesday 27 July 2010, Eric Blake wrote: > On 07/27/2010 03:08 PM, Eric Blake wrote: > > On 07/27/2010 02:58 PM, Stefano Lattarini wrote: > >> +# Let user choose which version of autoconf to use. > >> +AUTOCONF=${AUTOCONF-autoconf} > >> + > > > > I'm used to this variant, with less typ

Re: [PATCHES] Bootstrap: Allow user overriding of $AUTOCONF and $PERL.

2010-07-27 Thread Eric Blake
On 07/27/2010 03:08 PM, Eric Blake wrote: > On 07/27/2010 02:58 PM, Stefano Lattarini wrote: >> +# Let user choose which version of autoconf to use. >> +AUTOCONF=${AUTOCONF-autoconf} >> + > > I'm used to this variant, with less typing: > > : ${AUTOCONF=autoconf} > > But your way works, too. Huh