bug-bash
[Top][All Lists]
Advanced

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

command getopts unknown when bash invoked as sh


From: Juergen Gohlke
Subject: command getopts unknown when bash invoked as sh
Date: Thu, 26 Jun 2003 15:48:16 +0200

From: jgo
To: address@hidden
Subject: command getopts unknown when bash invoked as sh

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: i686-pc-cygwin-gcc
Compilation
CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' 
-DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H 
-DRECYCLES_PIDS  -I.  -I../bash-2.05b -I../bash-2.05b/include -I../bash-2.05
b/lib  -g -O2
uname output: CYGWIN_NT-5.0 JONA 1.3.19(0.71/3/2) 2003-01-23 21:31 i686
unknown unknown Cygwin
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"

Repeat-By:
 $ cat script.sh
 while getopts "qrp:h" szOpt; do : some stuff; done

 $ sh script.sh
 getopts: not found







reply via email to

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