The objective of this project is to create a simple shell.
- Clone the repo
git clone [email protected]:zcanales/42-minishell.git
- Install Readline library
sh install_readline.sh
- Compile Minishell
make
- Run
./minishell
- Working History.
- Search and launch the right executable (based on the PATH variable or by using a relative or an absolute path).
- Environment variables ($ followed by a sequence of characters) expand to their values.
’
(single quotes: inhibit all interpretation of a sequence of characters)."
(double quotes: inhibit all interpretation of a sequence of characters except for $.)$?
expand to the exit status of the most recently executed foreground pipeline.|
Pipes: The output of each command in the pipeline is connected via a pipe to the input of the next command.- ctrl-C, ctrl-D and ctrl-\ work like in bash.
< file
: Redirect Input.> file
: Redirect Output.<< file
: Read Input from the current source until a line containing only the delimiter is seen.>> file
: Redirect Output with append mode.
echo
with option -n.cd
with only a relative or absolute path.pwd
without options.export
without options.unset
without options.env
without options.exit
without options