summaryrefslogtreecommitdiff
path: root/tests/commands-with-quotes.sh
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-03-21 10:26:31 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-03-21 12:42:43 +0100
commit6d76fbd80a1d633c7b5583730e0a0247f365ae10 (patch)
tree3d58c330d2efd1026ee15d2caaf7f5a210689ee4 /tests/commands-with-quotes.sh
parented79e3d28b34e4826196529a6a7c04518c91b71f (diff)
Add more tests using redirections, quoting and whitespaces
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'tests/commands-with-quotes.sh')
-rw-r--r--tests/commands-with-quotes.sh14
1 files changed, 14 insertions, 0 deletions
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