public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: KSH is pdksh
@ 2001-01-25  8:21 Shields, Daniel [EQTY]
  0 siblings, 0 replies; 15+ messages in thread
From: Shields, Daniel [EQTY] @ 2001-01-25  8:21 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

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

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: KSH is pdksh
@ 2001-01-25  7:39 Chet Ramey
  0 siblings, 0 replies; 15+ messages in thread
From: Chet Ramey @ 2001-01-25  7:39 UTC (permalink / raw)
  To: khan; +Cc: cygwin, dkarr, chet

> Nope, bash is not ksh. There are quite a few ksh93 features that are not
> implemented in bash (and possibly quite a few from ksh88 days, but I
> don't have details on those).

pd-ksh doesn't implement them either.  It attempts to emulate ksh88, with
a few ksh93 features that POSIX specifies.

The ksh88 and ksh93 features that bash does not implement (with suggested
bash equivalents for a few) are listed in the FAQ.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/

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

^ permalink raw reply	[flat|nested] 15+ messages in thread
* KSH is pdksh
@ 2001-01-24 13:36 Galen Boyer
  2001-01-24 14:35 ` Larry Hall (RFK Partners, Inc)
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Galen Boyer @ 2001-01-24 13:36 UTC (permalink / raw)
  To: cygwin

After reviewing some archives, I find that pdksh is cygwin's
version of ksh.  Is this still available and where do I get it?
My c:/cygwin/bin doesn't contain it.

Thanks.
-- 
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

^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <Mumit>]

end of thread, other threads:[~2001-01-25 13:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25  8:21 KSH is pdksh Shields, Daniel [EQTY]
  -- 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>

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).