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). |
||
---|---|---|
.. | ||
tests | ||
cmp.c | ||
extern.h | ||
ls.1 | ||
ls.c | ||
ls.h | ||
Makefile | ||
Makefile.depend | ||
Makefile.depend.options | ||
print.c | ||
util.c |