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.
This commit is contained in:
FRIGN 2016-03-02 11:28:18 +01:00 committed by sin
parent 97ce9ea586
commit 2d7d2261a0

3
ls.c
View File

@ -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;