ubase

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

commit 29d78aecc3b07fdcaa1941d6d0cacd7094d2d714
parent 4f0a9f405dc90780fd060258c4c245cdf32fbaff
Author: sin <sin@2f30.org>
Date:   Sat Oct 18 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");