-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to cor on 9/4/2009 11:58 PM: > c...@stud:/home/test$ md5sum --check '-=Bob Marley=-.md5' > md5sum: invalid option -- '='
Not a bug. And not unique to md5sum either; POSIX requires that most apps behave this way (only a few exceptions for legacy programs like echo). Try either of these, to see the difference. Basically, you need to tell your program that '-=Bob Marley=-.md5' is not an option, but an argument, either by avoiding a leading-, or by using the explicit end-of-options option. md5sum --check -- '-=Bob Marley=-.md5' md5sum --check './-=Bob Marley=-.md5' - -- 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/ iEYEARECAAYFAkqiTQYACgkQ84KuGfSFAYDaRwCgqWz2l2wV9VPsh1w9ehAqe2hu shwAnj8JaUrae2gqwFZarR9IQQcXhiYb =g+7i -----END PGP SIGNATURE-----