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: <414A46142DECD211A749002048403D260551D81F@exchuk07.eu.ssmb.com>
From: "Shields, Daniel [EQTY]" <daniel.shields@ssmb.com>
To: "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
Subject: RE: KSH is pdksh
Date: Thu, 25 Jan 2001 16:20:16 -0000
X-Mailer: Internet Mail Service (5.5.2650.21)

at least bash includes getopt...

$ cat test.sh
#!/bin/bash

while getopts x: c
do
    case $c in
      x) hat=$OPTARG;;
      esac
done

echo hat: $hat

ds83392@UKEQTGNT1 ~
$ ./test.sh -x hello
hat: hello

-----Original Message-----
From: Galen Boyer [mailto:galenboyer@yahoo.com]
Sent: 25 January 2001 15:52
To: cygwin@sourceware.cygnus.com
Subject: Re: KSH is pdksh


On 24 Jan 2001, dkarr@tcsi.com wrote:

> However, as I've come to discover after much pain, if you're
> already using Cygwin, there isn't much point to installing
> pdksh.  It's easy enough to create a symlink from
> "/usr/bin/ksh.exe" to "/usr/bin/bash.exe".  Poof.  You have
> Korn shell.  As far as I can tell, Bash can substitute for Korn
> shell in every area I'm familiar with.

Well, if I could find the equivalent to getopts, I think I could
get along without kornshell.  I found this feature to be
extremely useful when I was a heavy-duty KSH programmer, and now
I am coding a few scripts again and would like to take advantage
of it.

-- 
Galen Boyer
Fingers and toes, fingers and toes, forty things we share.
Forty one if you include, the fact that we don't care.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

