summaryrefslogtreecommitdiffstats
path: root/test/arguments/outrun.sh
blob: cfd8e684cf6baa73c8cd00a65f242f76873e15b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

echo "TESTING: 4.1 - simple args"
firejail --output=out ./argtest arg1 arg2

# simple quotes, testing spaces in file names
echo "TESTING: 4.2 - args with space and \""
firejail --output=out ./argtest "arg1 tail" "arg2 tail"

echo "TESTING: 4.3 - args with space and '"
firejail --output=out ./argtest 'arg1 tail' 'arg2 tail'

# escaped space in file names
echo "TESTING: 4.4 - args with space and \\"
firejail --output=out ./argtest arg1\ tail arg2\ tail

# & char appears in URLs - URLs should be quoted
echo "TESTING: 4.5 - args with & and \""
firejail --output=out ./argtest "arg1&tail" "arg2&tail"

echo "TESTING: 4.6 - args with & and '"
firejail --output=out ./argtest 'arg1&tail' 'arg2&tail'