4 ms·
How does one implement logical connectives? (&&, ||)
by munyari 10y ago
How does one implement logical connectives? (&&, ||)
- OJFord 10y agoThere 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.