Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / tests / iquote1.sub
1 # Problems with variables that expand to 0x7f and quoted nulls in the same
2 # expansion -- affects bash versions 4.0-post 4.2
3 a=x
4 b=
5 del=$'\x7f'
6
7 set ""
8
9 recho ${undef-"x$*y"}
10 recho "x$*y"
11 recho x"$*"y
12 recho x"$del"y
13
14 recho ${undef-"$@"}
15 recho "$@"
16 recho "${@}"
17 recho ${undef-"$*"}
18 recho "$*"
19 recho "${*}"
20
21 recho "$del${a#x}"
22 recho "$del ${a#x}"
23 recho " $del${a#x}"
24
25 recho " $del$b"
26 recho " $del${b}"
27 recho " $del${b#x}"
28 recho " $del${a#x}"
29
30 recho " $del${a%x}"
31 recho " $del${a:0:0}"
32 recho " $del"${a:0:0}
33 recho " $del""${a:0:0}"
34 recho " $del${a}"
35 recho " $del"
36 recho " ${del}${a:0:0}"
37 recho " ${del:0:1}${a:0:0}"
38 recho " ${del:0:1}${a}"
39 recho "${del:0:1}${a#d}"
40 recho "${del:0:1}${a#x}"
41 recho " ${del:0:1} ${a}"
42 recho "${del:0:1} ${a#d}"
43 recho "${del:0:1} ${a#x}"