Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
munyari
· 10y ago · 0 comments
How does one implement logical connectives? (&&, ||)
Comments
[–]
OJFord
10y ago
There are many ways that one might; perhaps the simplest might be to just define them as a builtin to your shell that checks the exit code of the left-hand command, and executes or doesn't the right-hand command accordingly.