1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-27 11:41:17 +03:00
Files
mbedtls/tests/scripts/all-helpers.sh
Manuel Pégourié-Gonnard dea880f035 all.sh: fix missing quotes
Without quotes, when the variable is empty, the shell will see three
tokens: [, -n, ]. After skipping ] as usual, it will see a single token,
so it will consider it not as command, but a string to be tested for "is
it empty", and since "-n" is not empty, the command will return true.

With quotes it see 4 tokens: [, -n, <empty string>, ] and interprets -n
as desired.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2024-10-17 09:21:19 +02:00

11 KiB