df: more compatible -P behavior
authorRalf Friedl <Ralf.Friedl@online.de>
Tue, 9 Aug 2011 02:49:27 +0000 (04:49 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 9 Aug 2011 02:49:27 +0000 (04:49 +0200)
commit00103d32879e98c9bba9b6c14fb36d573badc9e0
tree951b98b70cc05fed53a71ad6b942f4e39242ca8c
parent98aeabe792ac039b941968efbb4d2d6ef826813d
df: more compatible -P behavior

In coreutils df, one of the effects of the option -P is to output
everything in one line. This makes it much easier for a script to parse
the output of df.
This patch adds the same behavior to busybox df.

function                                             old     new   delta
df_main                                              853     863     +10

Signed-off-by: Ralf Friedl <Ralf.Friedl@online.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/df.c