[PATCH] cmd: test: add bug-compatibility special case for 'test -n'
Tom Rini
trini at konsulko.com
Fri Apr 3 01:30:31 CEST 2026
On Mon, 30 Mar 2026 16:01:06 +0200, Rasmus Villemoes wrote:
> It turns out that there is lots of code in the wild, including in the
> U-Boot tree itself, which used to rely on
>
> test -n $somevar
>
> to yield false when $somevar is not defined or empty. See for example
> all the occurrences of 'test -n $fdtfile'. That was really only a
> quirk of the implementation that refused calls with argc < 3, and not
> because it was interpreted as
>
> [...]
Applied to u-boot/next, thanks!
[1/1] cmd: test: add bug-compatibility special case for 'test -n'
commit: f7e7c55e53e80100c327b9cb0512c069acf80ab5
--
Tom
More information about the U-Boot
mailing list