3 ms·
Same as any potentially unbound variable, by providing a (possibly empty) default value: if [ "${1:-}" == "my awesome value" ]; then ...
by mdaniel 10y ago
Same as any potentially unbound variable, by providing a (possibly empty) default value:
if [ "${1:-}" == "my awesome value" ]; then ...