From a24b0dd59e2e968deb9cc229eab0d0c3e1f1c9e9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 26 Nov 2018 13:40:00 -0800 Subject: head: add --bytes synonym for -c. Used by OTA package scripts in AOSP, and quite widely inside Google. I've also added --lines because it seems crazy to support one and not the other, and --lines is also widly used inside Google too. --- toys/posix/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/head.c') diff --git a/toys/posix/head.c b/toys/posix/head.c index 0cec4033..7e34a714 100644 --- a/toys/posix/head.c +++ b/toys/posix/head.c @@ -6,7 +6,7 @@ * * Deviations from posix: -c -USE_HEAD(NEWTOY(head, "?n#<0=10c#<0qv[-nc]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_HEAD(NEWTOY(head, "?n(lines)#<0=10c(bytes)#<0qv[-nc]", TOYFLAG_USR|TOYFLAG_BIN)) config HEAD bool "head" -- cgit v1.2.3