From 6d76fbd80a1d633c7b5583730e0a0247f365ae10 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 21 Mar 2020 10:26:31 +0100 Subject: Add more tests using redirections, quoting and whitespaces Signed-off-by: Olivier Gayot --- tests/commands-with-quotes.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/commands-with-quotes.sh (limited to 'tests/commands-with-quotes.sh') 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 -- cgit v1.2.3