From: Jim Meyering Date: Sat, 10 Jan 1998 12:07:50 +0000 (+0000) Subject: (decode_switches) [-u]: Fix bug whereby -u had no effect X-Git-Tag: v4.5.1~8911 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79d39ab7bf220d7847b8937eb23f3be97169d03f;p=thirdparty%2Fcoreutils.git (decode_switches) [-u]: Fix bug whereby -u had no effect without -l or -t. Now, -u (like -c) implies --sort=time. Suggestion from Andreas Schwab. --- diff --git a/src/ls.c b/src/ls.c index 561d52a16a..d2ee0a75f4 100644 --- a/src/ls.c +++ b/src/ls.c @@ -1020,6 +1020,7 @@ decode_switches (int argc, char **argv) break; case 'u': + sort_type = sort_time; time_type = time_atime; break;