-Martin
On Tue, 5 Aug 2025 at 02:17, Stan Marsh wrote:
> (I am talking about things like ${var:-default value})
>
> I have long wished there was a substitution for "substitute a string if
> var is unset
> else substitute nothing".
I've wondered about that myself at times.
I like the idea, but
(I am talking about things like ${var:-default value})
I have long wished there was a substitution for "substitute a string if var is
unset
else substitute nothing". This would basically be the inverse of :+, which
means
substitute a string if the var is set (ignoring the actual value of the
v