source: MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-vars/param_expand_default.tests@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 466 bytes
Line 
1# first try some invalid patterns (do in subshell due to parsing error)
2"$THIS_SH" -c 'echo ${-}'
3"$THIS_SH" -c 'echo ${:-}'
4
5# now some funky ones
6echo _${#-} _${#:-}
7
8# now some valid ones
9set --
10echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
11
12set -- aaaa
13echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
14
15unset f
16echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
17
18f=
19echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
20
21f=fff
22echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
Note: See TracBrowser for help on using the repository browser.