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 17:20:16 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: ash missing 'getopts' builtin Message-ID: <20030519152016.GA29656@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20030519081134 DOT B19452 AT ns DOT helixdigital DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030519081134.B19452@ns.helixdigital.com> User-Agent: Mutt/1.4.1i On Mon, May 19, 2003 at 08:11:34AM -0700, Dario Alcocer wrote: > 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.) Thanks but that's not how ash is supposed to be used. Ash as part of the Cygwin distro is "code-minimized" under the assumption that it's *only* used for shell scripts using most plain bourne syntax (autoconf is actually one example) and that it's good to have a shell which is running fast since it doesn't have to care for the user interface. So, ash is compiled under Cygwin with job control disabled, with a few options missing to the `read command' etc. If you actually need all these stuff, please use bash, not ash. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/