On Dec 9, 2014, at 9:47 AM, Stephane Chazelas <stephane.chaze...@gmail.com> 
wrote:

> It's a bit confusing that ${VAR:-""} should be treated
> differently from ${VAR:=""}. Was there a rationale for changing
> the behaviour other than strict POSIX conformance? AFAICT, ksh
> and mksh behave differently (from bash and from each other), so
> I can't say the change helps much with portability here.

One tests and sets the variable involved, one tests but does not set the 
variable involved. It's nice to have both behaviors available, I use both.

Reply via email to