Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kazinator
on Nov 23, 2023
|
parent
|
context
|
favorite
| on:
test, [, and [[ (2020)
So ${foo-bar} will not expand to bar if foo exists, but is empty. The empty value will prevail. ${foo:-bar} will expand to bar.
If we have nothing in place of bar, they are effectively same.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If we have nothing in place of bar, they are effectively same.