Lecture 17
17
Shell object
•Constructor sets some fields
–the Juno system that created this Shell (37)                (like issuing Bank in BankAccount)
–the User and the console (38, 39)
–the current Directory (the User’s home) (40)
•Then invokes CLIShell (command line interface) which works just like LoginInterpreter
–get an input line from the user (50)
–invoke this Shell’s interpret method
–done when interpret returns false for moreWork                             (user has typed “logout”)