I actually only need --quiet to build AOSP, but it seems weird to add --quiet as a synonym for -s but _not_ add the more obviously related --silent. --- toys/posix/cmp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/toys/posix/cmp.c b/toys/posix/cmp.c index f4c3409..1a8f690 100644 --- a/toys/posix/cmp.c +++ b/toys/posix/cmp.c @@ -4,7 +4,7 @@ * * See http://opengroup.org/onlinepubs/9699919799/utilities/cmp.html -USE_CMP(NEWTOY(cmp, "<2>2ls[!ls]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_CMP(NEWTOY(cmp, "<2>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN)) config CMP bool "cmp" @@ -26,8 +26,6 @@ GLOBALS( char *name; ) -// This handles opening the file and - static void do_cmp(int fd, char *name) { int i, len1, len2, min_len, size = sizeof(toybuf)/2; -- 2.19.1.930.g4563a0d9d0-goog
From 442d0ec1cb8a635afb8b1eb3411c939eb2aa74f5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes <e...@google.com> Date: Wed, 14 Nov 2018 14:42:40 -0800 Subject: [PATCH] cmp: add --quiet and --silent synonyms for -s. I actually only need --quiet to build AOSP, but it seems weird to add --quiet as a synonym for -s but _not_ add the more obviously related --silent. --- toys/posix/cmp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/toys/posix/cmp.c b/toys/posix/cmp.c index f4c3409..1a8f690 100644 --- a/toys/posix/cmp.c +++ b/toys/posix/cmp.c @@ -4,7 +4,7 @@ * * See http://opengroup.org/onlinepubs/9699919799/utilities/cmp.html -USE_CMP(NEWTOY(cmp, "<2>2ls[!ls]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_CMP(NEWTOY(cmp, "<2>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN)) config CMP bool "cmp" @@ -26,8 +26,6 @@ GLOBALS( char *name; ) -// This handles opening the file and - static void do_cmp(int fd, char *name) { int i, len1, len2, min_len, size = sizeof(toybuf)/2; -- 2.19.1.930.g4563a0d9d0-goog
_______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net