patch to add getopt parsing to expr
    Joe Talbott 
    josepht at cstone.net
       
    Tue Jan 20 08:02:37 PST 2009
    
    
  
On Tue, Jan 20, 2009 at 04:52:45PM +0100, Joerg Sonnenberger wrote:
> On Tue, Jan 20, 2009 at 10:18:37AM -0500, Joe Talbott wrote:
> > Since POSIX requires arguments beginning with '-' to be options
> > shouldn't the following result in an error?
> 
> No. POSIX only says that -- has to be supported to disable the use of
> options. It doesn't say that options have to be used.
What about this?
    Guideline 14:
        If an argument can be identified according to Guidelines 3 through
        10 as an option, or as a group of options without option-arguments
        behind one '-' delimiter, then it should be treated as such.
Joe
    
    
More information about the Bugs
mailing list