diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-01-28 14:08:00 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-10 09:42:43 +0100 |
commit | 7b95857a7ad911e698dc18261deceffdfd7d9fdb (patch) | |
tree | 84389bcd212cd395f68c890388a82cd4d5a990e4 /commands/automount.c | |
parent | 6e7f99f26673e932a7c6e45a31727d4a82dd2c8c (diff) | |
download | barebox-7b95857a7ad911e698dc18261deceffdfd7d9fdb.tar.gz barebox-7b95857a7ad911e698dc18261deceffdfd7d9fdb.tar.xz |
commands/test: Improve option parsing to handle "]" less special
Testing for *ap[1] != ']' is bogus during option processing. Instead
test if there are options left to be processed.
This fixes the return value for e.g.
test -z ']lala'
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/automount.c')
0 files changed, 0 insertions, 0 deletions