From 495111d91a35f63d8fa68749f0c4fe3b0ad31e54 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 17 May 2017 12:46:49 +0100 Subject: commands: add ':' as alias for 'true' ':' is the null command, sometimes used in shell scripts (especially after 'then'), but it is not yet supported by barebox. It is supposed to do nothing, successfully, just like the 'true' command, so add it as an alias. Signed-off-by: Ian Abbott Signed-off-by: Sascha Hauer --- commands/true.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'commands/true.c') diff --git a/commands/true.c b/commands/true.c index 24dea46929..b850f51651 100644 --- a/commands/true.c +++ b/commands/true.c @@ -26,7 +26,10 @@ static int do_true(int argc, char *argv[]) return 0; } +static const char *true_aliases[] = { ":", NULL}; + BAREBOX_CMD_START(true) + .aliases = true_aliases, .cmd = do_true, BAREBOX_CMD_DESC("do nothing, successfully") BAREBOX_CMD_GROUP(CMD_GRP_SCRIPT) -- cgit v1.2.3