Porting to OS/2: Install sh

Available sh on OS/2 are at least three ones. They are pdksh, ash and bash. I recommend to install them all, but to use pdksh mainly. Because it's the fastest among them and supports some interesting features such as extproc of OS/2. However, some unix shell scripts require bash explicitly. And some scripts are happy with ash. So if you have some problem with pdksh, then use ash. But I've not encountered this situation so far. ^^

// ----- 2016/01/04
Use mksh instead of pdksh. mksh is a successor of pdksh, and maintained actively.
// -----

1. pdksh


You can get pdksh from



Copy ksh.exe and sh.exe into x:\usr\bin. And copy sh.exe into x:\bin, because unix scripts require /bin/sh.

// ----- 2016/01/04
You can get newer versions of pdksh from hobbes.
// -----

2. ash


You can get ash from


Copy ash.exe into x:\usr\bin.

ash.exe was built with kLIBC, so you make sure that kLIBC runtime in your LIBPATH. Otherwise, copy x:\gcc\usr\lib\libc*.dll into x:\usr\dll. Of course, make x:\usr\dll directory first if it does not exist.

// ----- 2014/09/13
And I recommend to rename \OS2\PRINT.COM to other, because configure scripts of autotools use 'print' expecting to print a message to screen, but PRINT.COM does not work so.
// -----

3. bash


You can get bash from


Unzip OS2tree.zip from the zip into x:\ in order to install its contents into x:\usr.

  • unzip OS2tree.zip -d x:\

And x:\usr\dll to your LIBPATH in CONFIG.SYS.

// ----- 2016/01/04

4. mksh


You can get mksh from


Copy mksh.exe into x:\usr\bin.

// -----

댓글

이 블로그의 인기 게시물

토렌트: < 왕좌의 게임 > 시즌 1 ~ 시즌 8 완결편 마그넷

토렌트: NGC < 코스모스 > 우리말 더빙 전편(1편~13편) 마그넷

토렌트: < 스타워즈 > Ep.1 ~ Ep.6 마그넷