ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit cea440bd2dbd367dadd4f88d24d73104c781af73
parent dc3a9d9e2ab4408682141d51c83c86de21747207
Author: sin <sin@2f30.org>
Date:   Sat, 18 Oct 2014 18:22:55 +0100

df -hk should disable -h and df -kh should disable -k

Diffstat:
df.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/df.c b/df.c @@ -33,9 +33,11 @@ main(int argc, char *argv[]) break; case 'h': hflag = 1; + kflag = 0; break; case 'k': kflag = 1; + hflag = 0; blksize = 1024; break; case 's': @@ -45,9 +47,6 @@ main(int argc, char *argv[]) usage(); } ARGEND; - if (kflag && hflag) - hflag = 0; - if (hflag) printf("Filesystem Size Used " "Avail Capacity Mounted on\n");