Lecture Notes: 21 More Shell
··1 min
And, Or #
- And: true && echo one
- Return value from main
- Success (rv = 0) is true
- Return val of last command in $?
- Or: true || echo one
Makeup Assignment #
- Review the concept.
- Pull out the “three zeros redo two” rule.
Tricky Tests #
- Pull down the project starter code.
- Take a look at the tests.
Ideas:
- Recursion for handling parens.
- Hash table for handling env vars.
Demo:
- Fail to build a hash table in class.