Alina Friedrichsen wrote:> > The test function can't know what do you mean if you have more then one > expression. > > With > [ -n = -a #[...] > you can mean that: > > 1. if the string "=" is non empty and something other is true > or > 2. if the string "-n" is equal to the string "-a" > > the function can't find out what expression do you want. It can't differ a > variable from a meta character. > > If you only use one expression per test call, than the tool can use the > argument length to find out what expression do you want. The bash, dash and > BusyBox ash do so. >
Thanks for explaining.. this makes perfectly sense and would be right if the metacharacter hadn't been enclosed in quotes. This should help the interpreter on its feet again.. shouldn't it? .. bud _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel