[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: Gecko/20061025 Thunderbird/ Mnenhy/

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
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]