[PATCH] commands: test: add support for [[ -v var_to_check_existence ]]

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 23 00:25:41 PST 2026


On Tue, 20 Jan 2026 13:27:20 +0100, Ahmad Fatoum wrote:
> We currently have no way to differentiate between a variable that's set
> and one that's empty, but this would be useful for scripts that source
> other scripts for customization and want to verify if some variables
> have been explicitly set to be empty or not, e.g. an initrd override
> that's empty would mean to omit the initrd as opposed to not setting it,
> which means to attempt no override.
> 
> [...]

Applied, thanks!

[1/1] commands: test: add support for [ -v var_to_check_existence ]
      https://git.pengutronix.de/cgit/barebox/commit/?id=516400780338 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list