Assignment task: Implement shell command whoami by printing some message to the user. Any printout (e.g., your name) is fine.
- To be executed in xv6
- In xv6, only sh.c can be modified
- Not required to handle a composite shell command including whoami, like whoami | wc. We will only test command whoami by itself.
- Not allowed to remove or modify the existing implementation of shell commands
- The execution of whoami should not invoke exec().
Important Notes:
- Please do not cheat from online as it does not work and has happened to me before on this website and I lose my questions.
- Please test the code and ensure it works before submitting the answer.
- Please include all relevant details so I can learn and implement it myself