blob: c40afa947a76b10e5347683bd353311fdf3bbf3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
set -- 1 2
unset var
recho ${var-$@}
recho ${var-"$@"}
recho ${var-$*}
recho ${var-"$*"}
unset -v a b c d
recho ${a=$@}
recho "$a"
recho ${b="$@"}
recho "$b"
recho ${c=$*}
recho "$c"
recho ${d="$*"}
recho "$d"
IFS=
unset var
recho ${var-$@}
recho ${var-"$@"}
recho ${var-$*}
recho ${var-"$*"}
unset -v a b c d
# Posix interp 221
# there should never be any word splitting because IFS is null
recho ${a=$@}
recho "$a"
recho $a
recho ${b="$@"}
recho "$b"
recho $b
recho ${c=$*}
recho "$c"
recho $c
recho ${d="$*"}
recho "$d"
recho $d
unset -v a b c d
a=$@
recho $a
b="$@"
recho $b
c=$*
recho $c
d="$*"
recho $d
unset -v parameter a b c d
|