freebsd/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 Fix ls_tests:o_flag with ZFS TMPDIR 2016-12-15 16:13:52 +00:00
cmp.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
extern.h ls(1): Add --color=when 2018-08-17 04:15:51 +00:00
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 Convert ls(1) to not use libxo(3) 2018-01-17 22:47:34 +00:00
Makefile Now that we have MK_LS_COLORS, we don't need RELEASE_CRUNCH check here. 2019-07-15 07:35:46 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
print.c ls(1): Add --color=when 2018-08-17 04:15:51 +00:00
util.c ls(1): Add --color=when 2018-08-17 04:15:51 +00:00