Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
facetint authored Apr 4, 2024
1 parent b6e1d8c commit 7afbdad
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,21 @@ This minishell project uses these tokens:
▶︎ Returns the result to the user.

### BUILTINS


| Command | Description |

|---|---|
|`cd`| + changes the current directory to the first argument provided
+ can be relative or absolute path
+ -- changes to HOME
+ - changes to OLDPWD
+ PWD and OLDPWD are set accordingly |
|`echo`| Displays a line of text<br>Optional flag `-n`: do not output the trailing newline|
|`env` | Displays the environment variables|
|`exit`| Terminates the shell.<br>Accepts optional argument `n`, which sets the exit status to `n`. |
|`export`| Accepts arguments `name[=value]`.<br>Adds name to the environment. Set's value of name to `value`.<br>If no argument is given, displays list of exported variables.|
|`pwd`| Shows the current directory as an absolute path.|
|`unset`|Accepts argument `name`. <br> Removes the variable `name` from the environment.|
**exit**
+ exits the shell with the status in the argument or the current status if none is specified
+ also needs a numeric argument for the status otherwise it will error
Expand Down

0 comments on commit 7afbdad

Please sign in to comment.