-
Notifications
You must be signed in to change notification settings - Fork 0
TEST Commands for minishell
panndabea edited this page Jan 16, 2024
·
5 revisions
echo $USER '$USER' ' $USER ' "'$USER'" "$USER"
ls /bin/ls date whoami
/bin/ls src /bin/ls src/vars touch filetest cp Makefile filetest cat filetest mkdir foldertest ls -l -a
exit exit 42 exit -666 exit 123 456
/bin/ls
asdf
expr
use the evaluation sheet
ls "src" this should work__
ls " src " this evaluates not
ls "-l -a" this evaluates not
echo "cat lol.c | cat > lol.c"
ls 'src' this should work__
ls '' this evaluates not
echo '$USER > huhu' this evaluates not
echo '$USER > huhu | nothing | wc' this evaluates not
echo '$USER' this evaluates not
env
unset TERM clear TERM=xterm-256color export TERM clear
see above
cd src/vars cd .. cd ../.. pwd cd minishell cd .
pwd cd .. pwd cd minishell pwd