Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 19 May 2003 08:11:34 -0700 From: Dario Alcocer To: cygwin AT cygwin DOT com Subject: ash missing 'getopts' builtin Message-ID: <20030519081134.B19452@ns.helixdigital.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i I'm not sure if this was intentional or not (being that /bin/sh is probably used by autoconf configure scripts), but ash is missing the 'getopts' built-in command. The manual page documents it, but the command isn't actually compiled in. Patch file is attached; for commands that are meant to be excluded, I've commented them out instead of using the '-j' flag (supposed to make job control commands.) --- ash-20020731-1/builtins.def.orig 1999-07-16 20:17:30.000000000 -0700 +++ ash-20020731-1/builtins.def 2003-05-19 08:01:04.000000000 -0700 @@ -60,34 +60,34 @@ evalcmd eval execcmd exec exitcmd exit -expcmd -j exp let +#expcmd exp let exportcmd export readonly #exprcmd expr test [ falsecmd false histcmd -h fc fgcmd -j fg -getoptscmd -j getopts +getoptscmd getopts hashcmd hash jobidcmd -j jobid jobscmd -j jobs #linecmd line -localcmd -j local +#localcmd local #nlechocmd nlecho -printfcmd -j printf +#printfcmd printf pwdcmd pwd readcmd read returncmd return setcmd set -setvarcmd -j setvar +setvarcmd setvar shiftcmd shift testcmd [ test trapcmd trap truecmd : true typecmd type umaskcmd umask -unaliascmd -j unalias +#unaliascmd unalias unsetcmd unset waitcmd wait #foocmd foo -aliascmd -j alias +#aliascmd alias ulimitcmd ulimit -- Dario Alcocer -- Sr. Software Developer, Helix Digital Inc. alcocer AT helixdigital DOT com -- http://www.helixdigital.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/