* 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
* Re: KSH is pdksh
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
2 siblings, 1 reply; 15+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-01-24 14:35 UTC (permalink / raw)
To: Galen Boyer, cygwin
At 04:36 PM 1/24/2001, Galen Boyer wrote:
>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.
pdksh is not Cygwin's version of ksh but rather an open-source version of
ksh which can be built and used under Cygwin. You can check the Cygwin
home page for pointers to related sites with ported software and you can
also look in the mail archives for indications that others have ported it
and made it available. Alternatively, you can just download the source
from your favorite GNU site and build it yourself.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
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-24 14:35 ` Larry Hall (RFK Partners, Inc)
@ 2001-01-24 15:33 ` David Feustel
0 siblings, 0 replies; 15+ messages in thread
From: David Feustel @ 2001-01-24 15:33 UTC (permalink / raw)
To: Galen Boyer, cygwin, Larry Hall (RFK Partners, Inc)
The ATT Korn Shell is now open source and should
compile with Cygwin. Get it at http://www.kornshell.com/
----- Original Message -----
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: "Galen Boyer" <galenboyer@yahoo.com>; <cygwin@sourceware.cygnus.com>
Sent: Wednesday, January 24, 2001 5:31 PM
Subject: Re: KSH is pdksh
> At 04:36 PM 1/24/2001, Galen Boyer wrote:
> >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.
>
>
> pdksh is not Cygwin's version of ksh but rather an open-source version of
> ksh which can be built and used under Cygwin. You can check the Cygwin
> home page for pointers to related sites with ported software and you can
> also look in the mail archives for indications that others have ported it
> and made it available. Alternatively, you can just download the source
> from your favorite GNU site and build it yourself.
>
>
>
> Larry Hall lhall@rfk.com
> RFK Partners, Inc. http://www.rfk.com
> 118 Washington Street (508) 893-9779 - RFK Office
> Holliston, MA 01746 (508) 893-9889 - FAX
>
>
>
> --
> 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-24 13:36 Galen Boyer
2001-01-24 14:35 ` Larry Hall (RFK Partners, Inc)
@ 2001-01-24 15:30 ` Corinna Vinschen
2001-01-24 15:39 ` David M. Karr
2 siblings, 0 replies; 15+ messages in thread
From: Corinna Vinschen @ 2001-01-24 15:30 UTC (permalink / raw)
To: cygwin
On Wed, Jan 24, 2001 at 04:36:33PM -0500, Galen Boyer wrote:
> 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.
Ooops, pdksh is _not_ the Cygwin version of ksh. Pdksh is an open
source implementation of ksh which isn't bound to a specific OS.
Latest sources are available in ftp://ftp.cs.mun.ca/pub/pdksh , an
OLD Cygwin binary which only supports binmode mounts is available in
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Corinna/B20
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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-24 13:36 Galen Boyer
2001-01-24 14:35 ` Larry Hall (RFK Partners, Inc)
2001-01-24 15:30 ` Corinna Vinschen
@ 2001-01-24 15:39 ` David M. Karr
2001-01-24 17:25 ` Earnie Boyd
2001-01-25 7:51 ` Galen Boyer
2 siblings, 2 replies; 15+ messages in thread
From: David M. Karr @ 2001-01-24 15:39 UTC (permalink / raw)
To: cygwin
>>>>> "Galen" == Galen Boyer <galenboyer@yahoo.com> writes:
Galen> After reviewing some archives, I find that pdksh is cygwin's
Galen> version of ksh. Is this still available and where do I get it?
Galen> My c:/cygwin/bin doesn't contain it.
As Larry explained, this is something different.
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.
--
===================================================================
David M. Karr ; w:(425)487-8312 ; TCSI & Best Consulting
dkarr@tcsi.com ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
--
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-24 15:39 ` David M. Karr
@ 2001-01-24 17:25 ` Earnie Boyd
2001-01-24 19:07 ` Mumit Khan
2001-01-25 7:51 ` Galen Boyer
1 sibling, 1 reply; 15+ messages in thread
From: Earnie Boyd @ 2001-01-24 17:25 UTC (permalink / raw)
To: David M. Karr; +Cc: cygwin
"David M. Karr" wrote:
>
> >>>>> "Galen" == Galen Boyer <galenboyer@yahoo.com> writes:
> Galen> After reviewing some archives, I find that pdksh is cygwin's
> Galen> version of ksh. Is this still available and where do I get it?
> Galen> My c:/cygwin/bin doesn't contain it.
>
> As Larry explained, this is something different.
>
> 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.
>
I knew that once upon a time. Thanks for reminding me. Hey miss bash
maintainer how about a postinstall script to ln -s bash.exe ksh.exe?
Cheers,
Earnie.
_________________________________________________________
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
* Re: KSH is pdksh
2001-01-24 17:25 ` Earnie Boyd
@ 2001-01-24 19:07 ` Mumit Khan
2001-01-25 8:25 ` David M. Karr
0 siblings, 1 reply; 15+ messages in thread
From: Mumit Khan @ 2001-01-24 19:07 UTC (permalink / raw)
To: Earnie Boyd; +Cc: David M. Karr, cygwin
On Wed, 24 Jan 2001, Earnie Boyd wrote:
> "David M. Karr" wrote:
> > "/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.
> >
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).
> I knew that once upon a time. Thanks for reminding me. Hey miss bash
> maintainer how about a postinstall script to ln -s bash.exe ksh.exe?
Please don't. I personally very much dislike misleading links. If people
want ksh, they should go and port it using the AT&T's now open source
ksh93.
Regards,
Mumit
--
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-24 19:07 ` Mumit Khan
@ 2001-01-25 8:25 ` David M. Karr
2001-01-25 8:34 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 15+ messages in thread
From: David M. Karr @ 2001-01-25 8:25 UTC (permalink / raw)
To: cygwin
>>>>> "Mumit" == Mumit Khan <khan@nanotech.wisc.edu> writes:
Mumit> On Wed, 24 Jan 2001, Earnie Boyd wrote:
>> "David M. Karr" wrote:
>> > "/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.
Mumit> Nope, bash is not ksh. There are quite a few ksh93 features that are not
Mumit> implemented in bash (and possibly quite a few from ksh88 days, but I
Mumit> don't have details on those).
I'm not going to dispute that, but could you please give us some
examples of ksh88 and ksh93 features that aren't transparently
available in bash? I'd like to know exactly what problems I could run
into. I haven't noticed anything yet. Does someone know which
canonical ksh version (ksh88 or ksh93) the Solaris ksh matches?
Mumit> Please don't. I personally very much dislike misleading links. If people
Mumit> want ksh, they should go and port it using the AT&T's now open source
Mumit> ksh93.
It would sure be nice to bring a maintainable ksh into the Cygwin
fold, just for the sake of increased Unix compatibility.
--
===================================================================
David M. Karr ; w:(425)487-8312 ; TCSI & Best Consulting
dkarr@tcsi.com ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
--
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 8:25 ` David M. Karr
@ 2001-01-25 8:34 ` Larry Hall (RFK Partners, Inc)
2001-01-25 12:52 ` Matthew Smith
0 siblings, 1 reply; 15+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-01-25 8:34 UTC (permalink / raw)
To: David M. Karr, cygwin
At 11:21 AM 1/25/2001, David M. Karr wrote:
> Mumit> Please don't. I personally very much dislike misleading links. If people
> Mumit> want ksh, they should go and port it using the AT&T's now open source
> Mumit> ksh93.
>
>It would sure be nice to bring a maintainable ksh into the Cygwin
>fold, just for the sake of increased Unix compatibility.
Volunteers welcome!:-)
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
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 8:34 ` Larry Hall (RFK Partners, Inc)
@ 2001-01-25 12:52 ` Matthew Smith
2001-01-25 13:32 ` Earnie Boyd
0 siblings, 1 reply; 15+ messages in thread
From: Matthew Smith @ 2001-01-25 12:52 UTC (permalink / raw)
To: Cygwin
For what it's worth, I started taking a stab at compiling AT&T's ksh. Man,
they certainly do use some wacky packaging tools. At any rate, here are
some of the problems that I encountered, and what I did about them.
1) The 'package' script wants to see getopts. Thus, I made sh a link to
bash to work around this.
2) The 'package' script always seemed to fail, complaining about not being
in the package root (when it was). I solved this by editing the package
script to not exit if that particular error happened.
3) I made a link from gcc->cc for convenience sake (read: laziness).
At this point the 'mamake' utility seems to start configuring/making things.
However, it spits out the following errors:
/home/matts/att/src/lib/libast/include/ast_std.h:672: conflicting types for
`rea
d'
/usr/include/sys/unistd.h:72: previous declaration of `read'
/home/matts/att/src/lib/libast/include/ast_std.h:690: conflicting types for
`wri
te'
/usr/include/sys/unistd.h:99: previous declaration of `write'
Can anyone suggest an elegant way around this?
thanks,
-Matt Smith
> >
> >It would sure be nice to bring a maintainable ksh into the Cygwin
> >fold, just for the sake of increased Unix compatibility.
>
>
> Volunteers welcome!:-)
>
--
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-24 15:39 ` David M. Karr
2001-01-24 17:25 ` Earnie Boyd
@ 2001-01-25 7:51 ` Galen Boyer
2001-01-25 13:01 ` Galen Boyer
1 sibling, 1 reply; 15+ messages in thread
From: Galen Boyer @ 2001-01-25 7:51 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: KSH is pdksh
2001-01-25 7:51 ` Galen Boyer
@ 2001-01-25 13:01 ` Galen Boyer
0 siblings, 0 replies; 15+ messages in thread
From: Galen Boyer @ 2001-01-25 13:01 UTC (permalink / raw)
To: cygwin
On 25 Jan 2001, galenboyer@yahoo.com wrote:
> 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.
I got notified of the man pages for bash. It looks really nice
for scripting. getopts is just how I expected. Whoa! Cygwin is
excellent!
Thanks a WHOLE BUNCH!
--
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).