diff options
-rw-r--r-- | tests/commands-with-arguments.sh | 2 | ||||
-rw-r--r-- | tests/commands-with-quotes.sh | 14 | ||||
-rw-r--r-- | tests/redirections.sh | 9 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/commands-with-arguments.sh b/tests/commands-with-arguments.sh new file mode 100644 index 0000000..b235684 --- /dev/null +++ b/tests/commands-with-arguments.sh @@ -0,0 +1,2 @@ +ls -l +echo salut diff --git a/tests/commands-with-quotes.sh b/tests/commands-with-quotes.sh new file mode 100644 index 0000000..9269c57 --- /dev/null +++ b/tests/commands-with-quotes.sh @@ -0,0 +1,14 @@ +# This script contains multiple commands with inconsistent whitespaces, +# combinations of simple quotes and double quotes. +cat /etc/hosts + ls -l "/mnt" + pwd + +# With comments + +cat /fstab + +mkdir /tmp/fo"o" +touch -- '/tmp/foo'"/file with whitespaces in name" + +ls /tmp/foo diff --git a/tests/redirections.sh b/tests/redirections.sh new file mode 100644 index 0000000..4b5dcae --- /dev/null +++ b/tests/redirections.sh @@ -0,0 +1,9 @@ +# This script contains standard input/output redirections. +# It is expected to print "Hello World$" + +ls -l > /tmp/output +ls -l >/tmp/output2 + +echo Hello World > /tmp/file + +< file cat -e |