Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/shell/hush_test/hush-vars/param_expand_assign.tests

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (hide annotations) (download)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File size: 874 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 niro 984 # 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
6     "$THIS_SH" -c 'echo ${#=}'
7     "$THIS_SH" -c 'echo ${#:=}'
8    
9     # should error out
10     "$THIS_SH" -c 'set --; echo _${1=}'
11     "$THIS_SH" -c 'set --; echo _${1:=}'
12     "$THIS_SH" -c 'set --; echo _${1=word}'
13     "$THIS_SH" -c 'set --; echo _${1:=word}'
14    
15     # should not error
16     "$THIS_SH" -c 'set aa; echo _${1=}'
17     "$THIS_SH" -c 'set aa; echo _${1:=}'
18     "$THIS_SH" -c 'set aa; echo _${1=word}'
19     "$THIS_SH" -c 'set aa; echo _${1:=word}'
20    
21     # should work fine
22     unset f; echo _$f
23     unset f; echo _${f=}
24     unset f; echo _${f:=}
25     unset f; echo _${f=word}
26     unset f; echo _${f:=word}
27    
28     f=; echo _$f
29     f=; echo _${f=}
30     f=; echo _${f:=}
31     f=; echo _${f=word}
32     f=; echo _${f:=word}
33    
34     f=fff; echo _$f
35     f=fff; echo _${f=}
36     f=fff; echo _${f:=}
37     f=fff; echo _${f=word}
38     f=fff; echo _${f:=word}

Properties

Name Value
svn:executable *