|
From: | Martin Schulte |
Subject: | Re: T/F var expansion? |
Date: | Mon, 29 Jul 2019 07:01:11 +0200 |
Hello! > Is there a T/F var expansion that does: > > var=${tst:+$yes}${tst:-$no} > > but with yes/no in 1 expansion? At least if you are only working with numbers you can use ((var=(tst!=0?42:31))) But is this a question for bug-bash? Best regards, Martin
[Prev in Thread] | Current Thread | [Next in Thread] |