Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <011101c02f35$39070f30$c4acb018@home.com>
From: "Erik Nolte" <enolte@campuspipeline.com>
To: <cygwin@sourceware.cygnus.com>
Subject: ash and getopts
Date: Thu, 5 Oct 2000 19:31:59 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Why is getopts (and let, fc, local, printf, setvar, unalias, and alias)
tagged as a job control dependent feature in ash's builtins.def?

I have several scripts using getopts to parse the command line that must
work for /bin/sh on both Solaris and cygwin.  In the past, we've had to copy
/bin/bash.exe to /bin/sh.exe to get around this problem.  Now I'm finding
that if I remove the "-j" from the getopts line in ash/builtins.def and
rebuild, I get a shell consistent with sh on Solaris (and HP/UX, AIX, SVR4,
...).

It seems like ash/builtins.def should only have "-j" for bgcmd, fgcmd,
jobidcmd, and jobscmd.

- Erik


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

