Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
michaelhoffman
on Sept 16, 2012
|
parent
|
context
|
favorite
| on:
Bashttpd - An http server in bash
You can also solve that problem with double square brackets:
[[ "$foo" = 1 && "$bar" = 2 ]]
avleenvig
on Sept 16, 2012
[–]
Really, we should be using double square brackets. We're not aiming for POSIX compliance and double square solves a lot of problems.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: