[cs631apue] ls: when -S and -t are both given?
Jan Schaumann
jschauma at stevens.edu
Tue Oct 9 16:02:13 EDT 2012
jphillip <jphillip at stevens.edu> wrote:
> What should the behavior of the program be if -S and -t are both
> specified? They are two different ways of sorting (size or time) so it
> seems you can do one or the other. Should one take precedence? Thanks
Whenever you have conflicting options (whether or not they are
explicitly called out as such in the manual page or not), the last one
specified takes precedence.
Usually you can also compare the behaviour of the system's ls(1) and see
what it does to help you decide.
-Jan
More information about the cs631apue
mailing list