[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

${b+s ''}

From: sunnycemetery
Subject: ${b+s ''}
Date: Sat, 16 Feb 2019 11:38:17 -0500
User-agent: Mutt/1.11.3 (2019-02-01)

I would like to include a null string as part of a parameter expansion word:

mapfile -t${bNullDelimited+d ''}

When bNullDelimited is set, I expect this to expand to:

mapfile -td ''

However, it expands to:

mapfile -td

Note that a lone null string is successfully expanded:

mapfile -t${bNullDelimited+d} ${bNullDelimited+''}

The bash gurus in my neck of the woods consider this behavior unexpected.\ Is it a bug?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]