-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[Please use a more descriptive subject line]

According to punk on 12/13/2008 5:23 AM:
> /dev/sda5              65G   43G   22G  67% /media/disk-1
> p...@punk-desktop:~$ df -h --h
> df: option '--h' is ambiguous

This is the correct behavior.  Look at what you printed next:

> p...@punk-desktop:~$ df -h --help
...
>   -h, --human-readable  以容易理解的格式印出文件系统大小 (例如 1K 234M
...
>       --help     显示此帮助信息并离开

The getopt parser can't decide whether to treat --h as short for '--help'
or '--human-readable', so it errors out instead.  This is not a bug in df,
but in your usage pattern.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklD4aQACgkQ84KuGfSFAYBl4ACbBOXT73JPaNxE6b8I9qcwaVqt
DDIAoLmsyl9QBA3ZzmFJXNO6cB/OShJY
=vXrq
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to