sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 597847584d9f1e19cfa4999563472878d174f9f3
parent 18efe2d38ef6ebfd7652cc67ccf56bfd3fe41544
Author: FRIGN <dev@frign.de>
Date:   Wed Mar  2 11:28:18 +0100

Really force 1 entry per line with -1 in ls(1)

if a filename contains a \n, it would not be limited to one line.
We use the qflag to replace the control characters with '?'s.

Diffstat:
ls.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ls.c b/ls.c @@ -369,7 +369,8 @@ main(int argc, char *argv[]) ARGBEGIN { case '1': - /* ignore */ + /* force output to 1 entry per line */ + qflag = 1; break; case 'A': Aflag = 1;