removed pwd requirement

This commit is contained in:
Remzi Arpaci-Dusseau
2018-02-05 10:55:42 -06:00
parent 944f2c6252
commit 98972e54a2

View File

@@ -123,8 +123,8 @@ programs. Instead, your shell will invoke your implementation of the built-in
command. For example, to implement the `exit` built-in command, you simply
call `exit(0);` in your wish source code, which then will exit the shell.
In this project, you should implement `exit`, `cd`, `pwd`, and `path` as
built-in commands.
In this project, you should implement `exit`, `cd`, and `path` as built-in
commands.
* `exit`: When the user types `exit`, your shell should simply call the `exit`
system call with 0 as a parameter. It is an error to pass any arguments to
@@ -134,9 +134,6 @@ built-in commands.
error). To change directories, use the `chdir()` system call with the argument
supplied by the user; if `chdir` fails, that is also an error.
* `pwd`: When a user types `pwd`, your shell should call getcwd() and show the
result. It is an error to pass any arguments to `pwd`.
* `path`: The `path` command takes 0 or more arguments, with each argument
separated by whitespace from the others. A typical usage would be like this:
`wish> path /bin /usr/bin`, which would add `/bin` and `/usr/bin` to the