From bf1f0e357b6b1e7bd677ca41fc04ae3c5c5e6e70 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 11 Dec 2017 07:19:37 -0600 Subject: An incomplete list of deviations from posix (it's a start). --- toys/posix/ls.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'toys') diff --git a/toys/posix/ls.c b/toys/posix/ls.c index 009653b8..2726630c 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -4,6 +4,13 @@ * Copyright 2012 Rob Landley * * See http://opengroup.org/onlinepubs/9699919799/utilities/ls.html + * + * Deviations from posix: + * add -b (and default to it instead of -q for an unambiguous representation + * that doesn't cause collisions) + * add -Z -ll --color + * Posix says the -l date format should vary based on how recent it is + * and we do --time-style=long-iso instead USE_LS(NEWTOY(ls, USE_LS_COLOR("(color):;")"(full-time)(show-control-chars)ZgoACFHLRSabcdfhikl@mnpqrstux1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL][!qb]", TOYFLAG_BIN|TOYFLAG_LOCALE)) -- cgit v1.2.3