Re: [dev] [sbase] [PATCH 1--2] ls: fix -S and -q

2015-05-15 Thread Dimitris Papastamos
On Fri, May 15, 2015 at 12:29:48AM +0200, Alexandre Niveau wrote: > Greetings, > > I found some bugs in ls. > > 1. option -S does not work on its own: > > $ echo "aa" >a; echo "b" >b; echo "ccc">c > $ ls -S > a > b > c > > First attached patch fixes this. Applied the first patch, will review t

[dev] [sbase] [PATCH 1--2] ls: fix -S and -q

2015-05-14 Thread Alexandre Niveau
Greetings, I found some bugs in ls. 1. option -S does not work on its own: $ echo "aa" >a; echo "b" >b; echo "ccc">c $ ls -S a b c First attached patch fixes this. 2. When filenames contain control chars, it only works fine when no option among -tSFilpR is specified: $ touch "$(printf "tot