Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/shell/hush_test/hush-vars/param_expand_alt.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: 489 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 ${+} ; echo moo'
3     "$THIS_SH" -c 'echo ${:+} ; echo moo'
4    
5     # now some funky ones
6     echo _${#+} _${#:+}
7    
8     # now some valid ones
9     set --
10     echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
11    
12     set -- aaaa
13     echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
14    
15     unset f
16     echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
17    
18     f=
19     echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
20    
21     f=fff
22     echo _$f _${f+} _${f:+} _${f+word} _${f:+word}

Properties

Name Value
svn:executable *