bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: command getopts unknown when bash invoked as sh


From: Chet Ramey
Subject: Re: command getopts unknown when bash invoked as sh
Date: Thu, 26 Jun 2003 11:55:33 -0400

> Machine Type: i686-pc-cygwin
> 
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description:
>  when the GNU shell is invoked as sh, it does not know the
>  command getopts, instead prints the error "getopts: not found"

Since getopts is a builtin, and things work correctly when you invoke
`bash', you should verify that `sh' is actually `bash'.  You might be
surprised at the results.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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