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

According to Matthew Woehlke on 11/10/2006 12:37 PM:
>> No, please don't.  It means that programs change their behavior based
>> upon their names.  When a the program is copied or renamed it no
>> longer works the same.  Having been burned by that myself it is now
>> one of my pet peeves.
> 
> ...so gzip, groff and vim are pet peeves? I guess I don't see the
> problem as long as you can use options to override the defaults that
> looking at argv[0] sets.

Within coreutils alone, you have ls, dir, and vdir, all of which are built
from basically the same sources, and all of which can behave like the
others with the appropriate command line options.  That is an example of a
better way to make the behavior of a program not dependent on argv[0].  If
I like the defaults of dir better than the defaults of ls, I can just 'mv
/bin/dir /bin/ls'.  If it were argv[0]-dependent, this would not work.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFVTG/84KuGfSFAYARAqDsAJsHSYTTm83nP+boK7c31woRLTCxxgCfZnzv
md/mu0Ew0NaydB2nU76ZseI=
=8yly
-----END PGP SIGNATURE-----


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

Reply via email to