diff options
author | obrien <obrien@FreeBSD.org> | 2003-12-01 19:10:29 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-12-01 19:10:29 +0000 |
commit | 39dfacb5b4f69e62c943d09a85c4029adf56ec88 (patch) | |
tree | 3dc0a83b78d87ba5d1a31c04d2a2dbc9c4ae7b9b /bin | |
parent | 7369e92014a14714c94aa145d4bae7c673df21e3 (diff) | |
download | FreeBSD-src-39dfacb5b4f69e62c943d09a85c4029adf56ec88.zip FreeBSD-src-39dfacb5b4f69e62c943d09a85c4029adf56ec88.tar.gz |
Do something sensible if both -h and -k are given.
Approved by: re(scottl)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/ls.1 | 8 | ||||
-rw-r--r-- | bin/ls/ls.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index fc3154e..e2a826a 100644 --- a/bin/ls/ls.1 +++ b/bin/ls/ls.1 @@ -186,6 +186,14 @@ option is specified, print the file size allocation in kilobytes, not blocks. This option overrides the environment variable .Ev BLOCKSIZE . +Note that +.Fl k +is mutually exclusive to +.Fl h +and later +.Fl k +will nullify earlier +.Fl h . .It Fl l (The lowercase letter .Dq ell . ) diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 53d6608..28eb59a 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -267,6 +267,7 @@ main(int argc, char *argv[]) f_inode = 1; break; case 'k': + f_humanval = 0; f_kblocks = 1; break; case 'm': |