summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-04-19 08:41:50 +0100
committerPádraig Brady <P@draigBrady.com>2011-03-23 16:44:49 +0000
commit99679fff629f4a624f4fe7a67335c6e90533afc2 (patch)
tree6791dc322532103ccb56d284f2aeac6ca4d9876b /NEWS
parent437fcf713c237f45f9504bb8bdc6041f65663b36 (diff)
downloadcoreutils-99679fff629f4a624f4fe7a67335c6e90533afc2.tar.xz
df: fix alignment of columns
* src/df.c (alloc_table_row): A new function to allocate storage for a row of strings. (print_table): A new function to interate over all stored strings in the table, and apply alignment honoring the max width of each column. (get_header): Renamed from print_header, and adjusted accordingly. (get_dev): Renamed from show_dev. Also we no longer wrap longer device names over two lines, which can be an unexpected issue for scripts parsing the output from df. (get_disk): s/show_/get_/ (get_point): Likewise. (get_entry): Likewise. (get_all_entries): Likewise. * NEWS: Mention the change.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b2674c0e9..e93f01366 100644
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,9 @@ GNU coreutils NEWS -*- outline -*-
** Changes in behavior
+ df now aligns columns consistently, and no longer wraps entries
+ with longer device identifiers, over two lines.
+
test now accepts "==" as a synonym for "="