HardenedBSD/bin/ls
Stefan Eßer 3fee777ec5 Simplify LS_COLWIDTHS processing
The previous version normalized the width list (replaced empty fields
with "0") just to be able to use sscanf() on the string.

It is much simpler to just parse the string as-is.

The clearing of f_notabs is preserved for the case that less than 9
width values have been defined, but I do not understand the rationale
for this particular condition. E.g., LS_COLWIDTHS="::::::::" will be
counted as 9 defined fields (may clear f_notabs) but is no different
fron LS_COLWIDTHS="" with regard to the field width (and that does not
clear f_notabs, since there are less than 9 fields).
2020-12-27 22:32:22 +01:00
..
tests
cmp.c
extern.h
ls.1 ls(1): Use \& as an escape character for the ',' option 2020-10-10 13:39:13 +00:00
ls.c Simplify LS_COLWIDTHS processing 2020-12-27 22:32:22 +01:00
ls.h
Makefile
Makefile.depend
Makefile.depend.options
print.c
util.c