-
-
echo
[option]
- display all arg(s)-n
do not output the trailing newline
$ echo salut salut $ echo -n salut salut$
-
-
pwd
- print current working directoey$ pwd /home
-
cd
[opt/path](optional)
- change the working directory-
=>cd $OLDPWD
path
=>cd path
nothing
=>cd $HOME
$ pwd && cd .. && pwd /home/loic/Documents/Minishell /home/loic/Documents $ cd - && pwd /home/loic/Documents/Minishell
-
env
- display environement variable
-
unset
[var]
- unset var from env$ unset PWD $ echo -n |$PWD| ||$
-
export
[varname]=[value]
$ export arg='export test' $ env | grep arg arg=export test
-
return
[integer](optional)
- do nothing and return the first argument$ return $ echo -n $? 0$ return 5 || echo value: $? value: 5
-
exit
[value](optional)
- exit shell and return value
-
Notifications
You must be signed in to change notification settings - Fork 1
lohhiiccc/Minishell
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Project is about creating a simple shell.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published