From 1723da64c0c06d74a6622f114ce95c0295b4a33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatmanur=20=C3=87etinta=C5=9F?= <99668549+facetint@users.noreply.github.com> Date: Thu, 4 Apr 2024 19:26:11 +0300 Subject: [PATCH] Update README.md --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0bf656a..982db16 100644 --- a/README.md +++ b/README.md @@ -232,17 +232,12 @@ This minishell project uses these tokens: ### 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 | +|`cd`| Changes the working directory of the current shell execution environment and updates the environment variables `PWD` and `OLDPWD`.
Without arguments it change the working directory to the home directory.
`-` changes the directory to the `OLDPWD`. | |`echo`| Displays a line of text
Optional flag `-n`: do not output the trailing newline| |`env` | Displays the environment variables| |`exit`| Terminates the shell.
Accepts optional argument `n`, which sets the exit status to `n`. | -|`export`| Accepts arguments `name[=value]`.
Adds name to the environment. Set's value of name to `value`.
If no argument is given, displays list of exported variables.| +|`export`| with an argument it needs a valid identifier followed by an optional = and value. creates or changes the value of an existing environment variable. if no argument is provided it will print the environment variables in a weird format.| |`pwd`| Shows the current directory as an absolute path.| |`unset`|Accepts argument `name`.
Removes the variable `name` from the environment.| **exit**