mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-11 09:40:38 +00:00
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>