Skip to main content
  1. /classes/
  2. Classes, Spring 2025/
  3. CS 2470 Spring 2025: Course Site/

Lecture Notes: 21 More Shell

·79 words·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.
Nat Tuck
Author
Nat Tuck