This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ash missing 'getopts' builtin


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@helixdigital.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]