help-bash
[Top][All Lists]
Advanced

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

Is ${x+word} documented?


From: Peng Yu
Subject: Is ${x+word} documented?
Date: Sun, 31 Jan 2021 00:13:59 -0600

Hi,

I don't find the usage of `${x+word}` documented in the manpage (in
the Parameter Expansion section). Do I miss something here?

Can I always assume ${x:+word} and ${x+word} are exactly the same?

$ x=1
$ echo ${x:+word}
word
$ echo ${x+word}
word

-- 
Regards,
Peng



reply via email to

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