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

Re: [LI] comparing - and --



Yeah both are supported by POSIX I think
Single character option is preceded dash a single dash
Full-word-option is preceded with a double dash
normally

----- Original Message ----- 
From: Gurunandan R. Bhat <grbhat@xxxxxxxxxxx>
To: <linux-india@xxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, November 29, 1999 9:52 PM
Subject: Re: [LI] comparing - and --


> 
> 
> On Mon, 29 Nov 1999, T.V.Gnanasekaran wrote:
> 
> > When I came to Linux I discovered all command line options were
> > using two hyphens (--) instead of single -.
> > 
> > For example: ls --color
> 
> A single hyphen is meant for "collated options". like in tar -xvzf.
> To distinguish "-color"  from "-c -o -l -o -r", you use "--"
> 
> Long options are made longer to distinguish them from the short ones.
> Welcome to Unix ;)
> 
> Gurunandan
>  
> 
>  
> 
> --------------------------------------------------------------------
> 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.
> 

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