[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: include dos2unix/unix2dos in coreutils ?
From: |
Eric Blake |
Subject: |
Re: include dos2unix/unix2dos in coreutils ? |
Date: |
Fri, 10 Nov 2006 19:13:19 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 |
-----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 address@hidden
-----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-----
- include dos2unix/unix2dos in coreutils ?, Mike Frysinger, 2006/11/09
- Re: include dos2unix/unix2dos in coreutils ?, Jim Meyering, 2006/11/10
- Re: include dos2unix/unix2dos in coreutils ?, Matthew Woehlke, 2006/11/10
- Re: include dos2unix/unix2dos in coreutils ?, Bob Proulx, 2006/11/10
- Re: include dos2unix/unix2dos in coreutils ?, Matthew Woehlke, 2006/11/10
- Re: include dos2unix/unix2dos in coreutils ?,
Eric Blake <=
- Re: include dos2unix/unix2dos in coreutils ?, Matthew Woehlke, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Alfred M. Szmidt, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Alfred M. Szmidt, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Pádraig Brady, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Matthew Woehlke, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Alfred M. Szmidt, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Andreas Schwab, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Matthew Woehlke, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Alfred M. Szmidt, 2006/11/13
- Re: include dos2unix/unix2dos in coreutils ?, Matthew Woehlke, 2006/11/13