Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
emmelaich
on Nov 23, 2023
|
parent
|
context
|
favorite
| on:
test, [, and [[ (2020)
Yeh you'd have to do something like
foo=true bar=false $($foo) && $($bar); baz=$? case $baz in 1) echo false;; 0) echo true;; esac
It just ain't worth it.
shmerl
on Nov 23, 2023
[–]
Yeah, that's very convoluted. It would be useful to have some context for boolean expressions, similarly how $((...)) works for numeric ones.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: