The correct syntax is [ -n "${var}" ] (notice the quotes). Thanks to Vasilis.
Documented under ticket https://dev.openwrt.org/ticket/5556 Maddes P.S.: I assume a lot of scripts do this wrong. On 18.07.2009 23:01, Matthias Buecher / Germany wrote: > Hello, > > just recognised that "-n" comparison is not working in Busybox 1.13.4 > (trunk rev 16902) on my WRT350Nv2 / Marvell Orion. > "! -z" comparison is working fine. > This causes wrong results in several script, e.g. X-Wrt homepages. > > Is this a WRT350Nv2 / Marvell Orion specific issue? > Or intended behaviour by OpenWrt to save space in the kernel? > Or a busybox bug or intended behaviour of it? > > Regards > Maddes > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel