| Summary: | df -P -- columns not aligned with output | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | jds86930 |
| Component: | Other | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | minor | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.26.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
jds86930
2017-10-26 21:36:15 UTC
Rows will also fall out of alignment if printed values are too large to fit into allotted number of characters. Wouldn't it be much simpler to parse the output by treating it as whitespace delimited list of numbers instead of matching character positions? Simpler perhaps, but makes a different assumption, which is that none of the fields (ex, 'filesystem',' mounted on') will have spaces in them. For non-busybox versions of df, the column alignment being rigidly defined allowed me to control for potential field whitespace. |