Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <414A46142DECD211A749002048403D260551D81F@exchuk07.eu.ssmb.com> From: "Shields, Daniel [EQTY]" To: "'cygwin AT sourceware DOT cygnus DOT 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 AT UKEQTGNT1 ~ $ ./test.sh -x hello hat: hello -----Original Message----- From: Galen Boyer [mailto:galenboyer AT yahoo DOT com] Sent: 25 January 2001 15:52 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: KSH is pdksh On 24 Jan 2001, dkarr AT tcsi DOT 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