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 08:21:00 -0000 [thread overview]
Message-ID: <414A46142DECD211A749002048403D260551D81F@exchuk07.eu.ssmb.com> (raw)
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
next reply other threads:[~2001-01-25 8:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-25 8:21 Shields, Daniel [EQTY] [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-01-25 7:39 Chet Ramey
2001-01-24 13:36 Galen Boyer
2001-01-24 14:35 ` Larry Hall (RFK Partners, Inc)
2001-01-24 15:33 ` David Feustel
2001-01-24 15:30 ` Corinna Vinschen
2001-01-24 15:39 ` David M. Karr
2001-01-24 17:25 ` Earnie Boyd
2001-01-24 19:07 ` Mumit Khan
2001-01-25 8:25 ` David M. Karr
2001-01-25 8:34 ` Larry Hall (RFK Partners, Inc)
2001-01-25 12:52 ` Matthew Smith
2001-01-25 13:32 ` Earnie Boyd
2001-01-25 7:51 ` Galen Boyer
2001-01-25 13:01 ` Galen Boyer
[not found] <Mumit>
[not found] ` <Khan's>
[not found] ` <message>
[not found] ` <of>
[not found] ` <"Wed,>
[not found] ` <24>
[not found] ` <Jan>
[not found] ` <2001>
[not found] ` <21:07:04>
[not found] ` <-0600>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=414A46142DECD211A749002048403D260551D81F@exchuk07.eu.ssmb.com \
--to=daniel.shields@ssmb.com \
--cc=cygwin@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).