[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] comparing - and --



On Mon, Nov 29, 1999 at 07:29:40PM +0530, T.V.Gnanasekaran wrote:
> For example: ls --color
> 
> Now, why is it so? :)

That's a GNUism. Some people hate them - especially long time UNIX users.
After all GNU is not UNIX :)

The logic behind the long options is that all the short options are not
always logically named and hard to remember. Long options are relatively
easy to remember.

Given that being terse (to the extent of being ugly - creat(2) for example)
is considered a virtue among UNIX programmers, long options are frowned 
upon. So if you want to write portable code, don't use long options.

	-Arun

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.