public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Link "bash" to "ksh" to be more "portable"?
@ 2000-09-19  5:07 Jay Sullivan
  0 siblings, 0 replies; 8+ messages in thread
From: Jay Sullivan @ 2000-09-19  5:07 UTC (permalink / raw)
  To: cygwin; +Cc: jmsulliv


Use the source. 
pdksh-5.2.14 builds OTB. 
Enjoy.
J

On Tue, Sep 19, 2000 at 09:23:59AM +0200, Lassi A. Tuura wrote:
>> Is it reasonable to link "bash.exe" to "ksh.exe" in the Cygwin
>> distribution?  Is there any feature in Korn shell that is NOT in Bash,
>> or any other reason why this might be a bad thing to do?
>
>IIRC, zsh has a mode to emulate ksh, and will do so automatically if it
>starts as "ksh"-named process.  There have been messages about porting
>zsh to cygwin on this list, so take a look around to see if you can find
>the port.  Then create a symlink ksh to zsh or just copy the program to
>ksh.  Haven't tried that though.

>Why not just use pdksh?  I'd have more confidence that >something with "ksh"
>in its name would emulate ksh more precisely.
>I don't know if anyone has ported it, but I wouldn't be >surprised.
>
>cgf


Have you gotten your free email at fishing.com or flyfishing.com?  I got mine, come get yours!  Visit www.fishing.com or www.flyfishing.com to sign up!

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Link "bash" to "ksh" to be more "portable"?
@ 2000-09-19  5:56 Earnie Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Earnie Boyd @ 2000-09-19  5:56 UTC (permalink / raw)
  To: Lassi A. Tuura, David M. Karr; +Cc: cygwin

--- "Lassi A. Tuura" <lassi.tuura@cern.ch> wrote:
> > Is it reasonable to link "bash.exe" to "ksh.exe" in the Cygwin
> > distribution?  Is there any feature in Korn shell that is NOT in Bash,
> > or any other reason why this might be a bad thing to do?
> 
> IIRC, zsh has a mode to emulate ksh, and will do so automatically if it
> starts as "ksh"-named process.  There have been messages about porting
> zsh to cygwin on this list, so take a look around to see if you can find
> the port.  Then create a symlink ksh to zsh or just copy the program to
> ksh.  Haven't tried that though.
> 

YRC, zsh will emulate ksh and it emulates the bourne shell, although there may
still be bugs in doing so.  IIRC, it build OOB.

Cheers,

=====
--- < http://earniesystems.safeshopper.com > ---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://gw32.freeyellow.com/ >
           __Minimalist GNU for Windows__
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Link "bash" to "ksh" to be more "portable"?
  2000-09-19  0:24 ` Lassi A. Tuura
  2000-09-19  1:11   ` Andrej Borsenkow
@ 2000-09-19  4:16   ` Chris Faylor
  1 sibling, 0 replies; 8+ messages in thread
From: Chris Faylor @ 2000-09-19  4:16 UTC (permalink / raw)
  To: cygwin

On Tue, Sep 19, 2000 at 09:23:59AM +0200, Lassi A. Tuura wrote:
>> Is it reasonable to link "bash.exe" to "ksh.exe" in the Cygwin
>> distribution?  Is there any feature in Korn shell that is NOT in Bash,
>> or any other reason why this might be a bad thing to do?
>
>IIRC, zsh has a mode to emulate ksh, and will do so automatically if it
>starts as "ksh"-named process.  There have been messages about porting
>zsh to cygwin on this list, so take a look around to see if you can find
>the port.  Then create a symlink ksh to zsh or just copy the program to
>ksh.  Haven't tried that though.

Why not just use pdksh?  I'd have more confidence that something with "ksh"
in its name would emulate ksh more precisely.

I don't know if anyone has ported it, but I wouldn't be surprised.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Link "bash" to "ksh" to be more "portable"?
  2000-09-19  0:24 ` Lassi A. Tuura
@ 2000-09-19  1:11   ` Andrej Borsenkow
  2000-09-19  4:16   ` Chris Faylor
  1 sibling, 0 replies; 8+ messages in thread
From: Andrej Borsenkow @ 2000-09-19  1:11 UTC (permalink / raw)
  To: cygwin

>
> IIRC, zsh has a mode to emulate ksh, and will do so automatically if it
> starts as "ksh"-named process.

Yes, current development version provides fairly good compatibility including
ksh globbing syntax. But you probably better ask on
zsh-workers@sunsite.auc.dk. I myself do not use ksh for a long time.

 There have been messages about porting
> zsh to cygwin on this list, so take a look around to see if you can find
> the port.  Then create a symlink ksh to zsh or just copy the program to
> ksh.  Haven't tried that though.
>

Current development version (3.1.9-dev-6) builds under cygwin-1.1.4 and runs
quite fine. There is one glitch in zsh related to static build (mea culpa; but
dynamic build is fine) and one bug in pseudo-terminal support in 1.1.4 (fixed
in current cygwin CVS). As distributed pty's are used in Zsh in testsuite and
one function only, so it may be ignored. And process substitution is not
supported because neither FIFO or /dev/fd are supported.

I had problems running zsh with post-1.1.4 cygwin. Had no time to check
current snapshots yet.

-andrej


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Link "bash" to "ksh" to be more "portable"?
  2000-09-18 14:34 David M. Karr
  2000-09-18 14:40 ` Chris Faylor
@ 2000-09-19  0:24 ` Lassi A. Tuura
  2000-09-19  1:11   ` Andrej Borsenkow
  2000-09-19  4:16   ` Chris Faylor
  1 sibling, 2 replies; 8+ messages in thread
From: Lassi A. Tuura @ 2000-09-19  0:24 UTC (permalink / raw)
  To: David M. Karr; +Cc: cygwin

> Is it reasonable to link "bash.exe" to "ksh.exe" in the Cygwin
> distribution?  Is there any feature in Korn shell that is NOT in Bash,
> or any other reason why this might be a bad thing to do?

IIRC, zsh has a mode to emulate ksh, and will do so automatically if it
starts as "ksh"-named process.  There have been messages about porting
zsh to cygwin on this list, so take a look around to see if you can find
the port.  Then create a symlink ksh to zsh or just copy the program to
ksh.  Haven't tried that though.

Cheers and hope this helps,
//lat
-- 
Of all forms of caution, caution in love is the most fatal.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Link "bash" to "ksh" to be more "portable"?
@ 2000-09-18 15:34 Earnie Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Earnie Boyd @ 2000-09-18 15:34 UTC (permalink / raw)
  To: David M. Karr, cygwin

--- "David M. Karr" <dkarr@tcsi.com> wrote:
> 
> I'm aware of the recently mentioned incantation to run a ".bat" file
> from Cygwin.  I would guess that a very simple "cygrunbat" script
> could encapsulate this.
> 

Create a noop executable named #!.exe and put it in the /bin directory.  Then
in the foo.bat file put something like `#! c:/winnt/system32/cmd /c' as the
first line of the file.  The file still has to be named foo.bat so that cmd
recognizes it as an executable file.

Cheers,

=====
--- < http://earniesystems.safeshopper.com > ---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://gw32.freeyellow.com/ >
           __Minimalist GNU for Windows__
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Link "bash" to "ksh" to be more "portable"?
  2000-09-18 14:34 David M. Karr
@ 2000-09-18 14:40 ` Chris Faylor
  2000-09-19  0:24 ` Lassi A. Tuura
  1 sibling, 0 replies; 8+ messages in thread
From: Chris Faylor @ 2000-09-18 14:40 UTC (permalink / raw)
  To: cygwin

On Mon, Sep 18, 2000 at 02:33:56PM -0700, David M. Karr wrote:
>I often see Java libraries/packages that provide pairs of scripts, as
>a "bat" file and a Korn shell script.  It's sort of annoying when I
>see that I can't use either of them directly from a Bash shell.
>
>Is it reasonable to link "bash.exe" to "ksh.exe" in the Cygwin
>distribution?  Is there any feature in Korn shell that is NOT in Bash,
>or any other reason why this might be a bad thing to do?

bash is not the same thing as ksh.  If we copied bash to ksh we'd just
end up with confused people wondering why specific ksh features that
they were used to don't work.

Just in case someone thinks that linking ash to /bin/sh is in some way
related to this, it's not.  "bash" is not always necessarily the same
thing as /bin/sh.  On most versions of UNIX, /bin/sh is not bash.

However, if someone would like to volunteer to provide *and support* a
version of ksh for cygwin, I'd be happy to include it in the
distribution.

Now that I've asked for a volunteer I assume that there will be no
further discussion...

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Link "bash" to "ksh" to be more "portable"?
@ 2000-09-18 14:34 David M. Karr
  2000-09-18 14:40 ` Chris Faylor
  2000-09-19  0:24 ` Lassi A. Tuura
  0 siblings, 2 replies; 8+ messages in thread
From: David M. Karr @ 2000-09-18 14:34 UTC (permalink / raw)
  To: cygwin

I often see Java libraries/packages that provide pairs of scripts, as
a "bat" file and a Korn shell script.  It's sort of annoying when I
see that I can't use either of them directly from a Bash shell.

Is it reasonable to link "bash.exe" to "ksh.exe" in the Cygwin
distribution?  Is there any feature in Korn shell that is NOT in Bash,
or any other reason why this might be a bad thing to do?

I guess one other annoyance is the "whence" subcommand in Korn shell.
That apparently isn't present in Bash.  It should be easy enough to
write a script for it, but that's just another thing to take care of.

I'm aware of the recently mentioned incantation to run a ".bat" file
from Cygwin.  I would guess that a very simple "cygrunbat" script
could encapsulate this.

-- 
===============================================================================
David M. Karr     ; dkarr@tcsi.com  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-09-19  5:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-19  5:07 Link "bash" to "ksh" to be more "portable"? Jay Sullivan
  -- strict thread matches above, loose matches on Subject: below --
2000-09-19  5:56 Earnie Boyd
2000-09-18 15:34 Earnie Boyd
2000-09-18 14:34 David M. Karr
2000-09-18 14:40 ` Chris Faylor
2000-09-19  0:24 ` Lassi A. Tuura
2000-09-19  1:11   ` Andrej Borsenkow
2000-09-19  4:16   ` Chris Faylor

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