Files
42_INT_07_minishell/tests/unit_tests/vrac.sh
2021-12-03 11:22:24 +01:00

200 lines
1.9 KiB
Bash

echo bonjour ; |
echo bonjour | |
|
echo bonjour |;
echo bonjour \; ls
echo bonjour > test\ 1
cd $HOME/Documents
echo "\s" & echo "\\s"
echo \>
echo -n -n -nnnn -nnnnm
cat /dev/random | head -n 1 | cat -e
unset blablabla
export "" et unset ""
echo test > file test1
$
not_cmd bonjour > salut
env
export
env
cat Makefile | grep pr | head -n 5 | cd test (mybin)
$?
cat Makefile | grep pr | head -n 5 | cat test (bin)
$?
cat Makefile | grep pr | head -n 5 | hello (NA)
$?
echo bonjour >>> test
echo bonjour > > out
echo 2 >> out1 > out2
echo 2 > out1 >> out2
cat < blablabla
export var; export var=test
echo bonjour > $test
file_name_in_current_dir
cd ../../../../../.. ; pwd
ctrl-C . 130 sur bin(ex : sleep 10)&line vide
ctrl-\ .131 sur bin
echo "bip | bip ; coyotte > < \" "
cat | cat | cat | ls
$blablabla
export var ="cat Makefile | grep >"
export "test=ici"=coucou
export vat=at
c$var Makefile
$LESS$VAR
/bin/echo bonjour
not_cmd
sleep 5 | exit
echo bonjour > $test w/ t
"exit retour a la ligne"
minishell
# binary not in path without "./" before
cat diufosgid
$?
exit
$?
exit -10
exit +10
;
echo coucou | ;
echo "$HOME"
echo '$HOME'
export ; env # display is different for both commands
echo \$HOME
> log echo coucou
echo hudifg d | | hugdfihd
echo
echo simple
echo -n simple
echo '\'
echo "\"
echo "\\"
echo "\n \n \n"
echo "\n \\n \\\n"
echo ;;
echo hi";" hihi
echo hi " ; " hihi
cd
cd .
cd ~
cd /
cd no_file
cd a b c d
pwd a
pwd a b c d
export LOL=lala ROR=rara
unset LOL ROR
export "HI= hi"
export "HI =hi"
/bin/ls
write something the press ctrl+c
write something then press ctrl+d
write something then press ctrl+\
echo $?
l^Ds
echo |
| echo
sort | ls
cat < >
cat < <
cat > >
> a ls > b < Makefile
echo > a Hello World!
> a echo Hello World!
cat < Makefile | grep gcc > output
exit 0 | exit 1
exit 1 | exit 0