From 3ff67ee6645c351fc702b0ac93983ed5532ae7c5 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 24 Mar 2006 17:09:03 +0000 Subject: Change the -S and -t options to override each other so that the last one specified wins to make their interaction less confusing. --- bin/ls/ls.1 | 7 +++++++ bin/ls/ls.c | 3 +++ 2 files changed, 10 insertions(+) (limited to 'bin/ls') diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index 09abb13..becfa76 100644 --- a/bin/ls/ls.1 +++ b/bin/ls/ls.1 @@ -272,6 +272,13 @@ options all override each other; the last one specified determines the file time used. .Pp The +.Fl S +and +.Fl t +options override each other; the last one specified determines +the sort order used. +.Pp +The .Fl B , b , w , and .Fl q diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 053803c..e9a6e65 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -304,11 +304,14 @@ main(int argc, char *argv[]) case 'T': f_sectime = 1; break; + /* The -t and -S options override each other. */ case 't': f_timesort = 1; + f_sizesort = 0; break; case 'S': f_sizesort = 1; + f_timesort = 0; break; case 'W': f_whiteout = 1; -- cgit v1.1