ajout de pleins de tests et reorganisation des fichiers

This commit is contained in:
Hugo LAMY
2021-12-21 12:21:55 +01:00
parent 85424b47c4
commit 81db47d2f4
13 changed files with 2007 additions and 875 deletions

118
tests/defaults/b_echo.sh Normal file
View File

@@ -0,0 +1,118 @@
echo
Echo
echo bonjour
/bin/echo bonjour
echo simple
echo -n simple
echo -n -n -nnnn -nnnnm
echo hi
echo
echo
echo
echo
echo
echo
echo working
echo
echo a
echo tab
echo " tab "
echo tab
echo hello world
echo -n
echo -n a
echo -n hello world
echo -nnnnnnnn
echo -nnnnnnnn a
echo -nnnnnnnn hello world
echo -nnnnnnnn -nnnnnnnn
echo -nnnnnnnn -nnnnnnnn a
echo -nnnnnnnn -nnnnnnnn hello world
echo -nk hello
echo -nnnnnnnnnnk hello
echo -nknknknk hello
echo hello -n
echo hello -nnnnnnn
echo hello -nknknknknk
echo hello -nnnnnnnnn -nnnnnnnnn
echo \-n hello
echo "-n" hello
echo '-n' hello
echo "-n" "hello"
echo '-n' 'hello'
echo \-\n \h\e\l\l\o
echo '\-\n' '\h\e\l\l\o'
echo "\-\n" "\h\e\l\l\o"
echo $PATH
echo "$PATH"
echo '$PATH'
echo \$PATH
echo "\$PATH"
echo '\$PATH'
echo a "" b "" c
echo a "$NO_SUCH_ENV" b $NO_SUCH_ENV c, unset NO_SUCH_ENV
echo hello
echo \"$\"
echo "$ $ $ $ $ $ "
echo "\$\$USER\\$USER""$USER"
echo $
echo \$USER
echo \\$USER
echo \\\$USER
echo \\\\$USER