Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Need ksh in cygwin


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Need ksh in cygwin

Hi All,

I have installed cygwin64 terminal. I would like to have ksh shell as well. But i dont find any ksh files in /bin dir of cygwin. Pl. help on how to install ksh in cygwin. Its for my training purpose.I am using windows 7 64 bit .
# 2  
The default shell in brand new cygwin is dash. That is what you have unless you've changed it to bash. Because: The newest version of Korn shell is not in the public domain. You cannot download it legally, AFAIK. dash is pretty close to ksh and I believe it is POSIX compliant. There are other available shells like this. Many have extensions you may or may not want. One match is pdksh - public domain version of ksh. The cygwin site has pdksh.

To make pdksh or dash invoke just like ksh create a symlink. Example:/bin/ksh -> /usr/bin/pdksh

See: Almquist shell - Wikipedia - go to the DASH section.

Last edited by jim mcnamara; 4 Weeks Ago at 11:46 AM..
These 2 Users Gave Thanks to jim mcnamara For This Post:
# 3  
I had the same issue/question awhile back...
After a bit of digging, I installed mksh which "links/hides" itself as ksh:
Code:
$ which ksh
/usr/bin/ksh

$ ls -lrt /usr/bin/ksh
lrwxrwxrwx 1 LP-VGERSHKO-W7+vg_local LP-VGERSHKO-W7+None 8 Apr 19  2018 /usr/bin/ksh -> mksh.exe

man mksh yields:
Code:
MKSH(1)                   BSD General Commands Manual                  MKSH(1)

NAME
     mksh, sh — MirBSD Korn shell

SYNOPSIS
     mksh [-+abCefhiklmnprUuvXx] [-T [!]tty | -] [-+o option] [-c string | -s
          | file [argument ...]]
     builtin-name [argument ...]

DESCRIPTION
     mksh is a command interpreter intended for both interactive and shell
     script use.  Its command language is a superset of the sh(C) shell lan‐
     guage and largely compatible to the original Korn shell.  At times, this
     manual page may give scripting advice; while it sometimes does take por‐
     table shell scripting or various standards into account all information
     is first and foremost presented with mksh in mind and should be taken as
     such.

I don't quite remember if mksh was a separate Cygwin package or not...
These 2 Users Gave Thanks to vgersh99 For This Post:
# 4  
Quote:
Originally Posted by jim mcnamara
The default shell in brand new cygwin is dash. That is what you have unless you've changed it to bash. Because: The newest version of Korn shell is not in the public domain.
When did the default shell become 'dash'?
I have searched the official CygWin site and can find nothing on it.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
ksh for cygwin
scaleheights89
i am a newbie to unix. I installed cygwin in my windows vista. the terminal has bash as default. I need to work on ksh. the /usr/bin has no vi, clear or any of the ksh commands, Please tel me the exact link from where i can download vi editor. Please help.... Shell Programming and Scripting
4
Shell Programming and Scripting
opening new instance of cygwin from withing cygwin
Validatorian
I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do...... Shell Programming and Scripting
0
Shell Programming and Scripting
KSH script to run other ksh scripts and output it to a file and/or email
pacifican
Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and...... Shell Programming and Scripting
2
Shell Programming and Scripting
Anyone else use Cygwin?
mr_manny
I started to gather some stats from our windows servers through the use of cygwin and sshd :) is anyone else doing this sort of thing? interested in some other indicators I should be checking for... thanks, manny the following is only an example of the type of data I am able to...... UNIX for Dummies Questions & Answers
4
UNIX for Dummies Questions & Answers
cygwin - sh-3.2$ help!
bobby999
i am completely new to unix and am trying to learn with cygwin. my problem is simple.... when i use the 'man' command, eg 'man cat' id do not know how to get out of the manual!!!? if i type '!' and Return, rather than having just the $ prompt, it has 'sh-3.2$' as a command prompt....... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers

Featured Tech Videos