DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th January 2010
guitarscn guitarscn is offline
Package Pilot
 
Join Date: Oct 2008
Posts: 166
Default Where to obtain OpenBSD's pdksh

I looked through the 4.6 i386 packages list but I can't find ksh or pdksh (I want the OpenBSD version). I want to compile the source on another OS but I can't find the download on the OpenBSD packages page. Where can I obtain the official copy of OpenBSD's pdksh?
Reply With Quote
  #2   (View Single Post)  
Old 28th January 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

It is not a package, it is distributed as part of the operating system.. it is the default ksh implementation.

The developers have customized it over the years for use on OpenBSD, a few 3rd party projects have ported it elsewhere though.. AFAIK those efforts have stalled.

You can find the source in the CVS tree, or in the src.tar.gz tarballs put out with each release.

http://www.openbsd.org/cgi-bin/cvsweb/src/bin/ksh/
Reply With Quote
  #3   (View Single Post)  
Old 29th January 2010
bmk1st bmk1st is offline
Port Guard
 
Join Date: May 2008
Posts: 25
Default

Some people ported OpenBSD's ksh to other systems. You may want to search for that on the Internet. I'm not sure if these versions of ported KSH is maintained or up to date.

You can check out mksh, which is close to OpenBSD's ksh
http://www.mirbsd.org/mksh.htm
Reply With Quote
  #4   (View Single Post)  
Old 29th January 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

You can checkout the ksh code from OpenBSDs CVS and build it. Last time I did was on FreeBSD 6 or 7, it only required changing like two lines of a header file.

The mksh that bmk1st mentioned is also an option, although I haven't used it enough over the years to note compatibility levels with modern OpenBSDs own shell.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 29th January 2010
guitarscn guitarscn is offline
Package Pilot
 
Join Date: Oct 2008
Posts: 166
Default

Thanks. I don't like the default ksh because it doesn't have some features like the history completion with up/down arrows and tab completion, etc.

But after using OpenBSD's version for a while it seems like my preferred shell of choice. I don't think I even realized it was ksh

Last edited by guitarscn; 29th January 2010 at 04:13 AM.
Reply With Quote
  #6   (View Single Post)  
Old 29th January 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I've found ksh93 a bit buggy if that's what you're referring to, but it can be setup with a sexy completion system, if a bit unorthodox.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 24th April 2013
mirabilos's Avatar
mirabilos mirabilos is offline
New User
 
Join Date: May 2008
Location: The elder continent
Posts: 8
Talking

Quote:
Originally Posted by TerryP View Post
The mksh that bmk1st mentioned is also an option, although I haven't used it enough over the years to note compatibility levels with modern OpenBSDs own shell.
mksh is based off openbsd ksh, except for some things that are useless (mailbox checking) or positively break stuff (multiple ulimits in one command, bash-like PS1), or aren't done nicely and will be done differently (generic emacs multikey bind).

I keep track of OpenBSD ksh, even (and it amuses me when they fix bugs I fixed years ago, so I just need to bump the RCS Id I use for tracking).
Reply With Quote
  #8   (View Single Post)  
Old 26th April 2013
gpatrick gpatrick is offline
Spam Deminer
 
Join Date: Nov 2009
Posts: 245
Default

This thread is over 3 year old, what's your point?

Besides, OpenBSD doesn't develop an "OpenBSD ksh"; as far as I know, it is pdksh.
Reply With Quote
  #9   (View Single Post)  
Old 26th April 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

I could be wrong but if I am not mistaken Mirabilos is the Linus/Theo of MirBSD OS

See https://www.mirbsd.org/ and https://www.mirbsd.org/mksh.htm
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 7th May 2013
gpatrick gpatrick is offline
Spam Deminer
 
Join Date: Nov 2009
Posts: 245
Default

Interesting, because from the OpenBSD ksh man page:
Quote:
KSH(1) OpenBSD Reference Manual KSH(1)

NAME
ksh - public domain Korn shell
...
...
...
AUTHORS
This shell is based on the public domain 7th edition Bourne shell clone
by Charles Forsyth and parts of the BRL shell by Doug A. Gwyn, Doug
Kingston, Ron Natalie, Arnold Robbins, Lou Salkind, and others. The
first release of pdksh was created by Eric Gisin, and it was subsequently
maintained by John R. MacMillan (change!john@sq.sq.com), Simon J. Gerraty
(sjg@zen.void.oz.au), and Michael Rendell (michael@cs.mun.ca). The
CONTRIBUTORS file in the source distribution contains a more complete
list of people and their part in the shell's development.

OpenBSD 5.0 March 18, 2013 OpenBSD 5.0
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
obtain 2 ips via dhcp dextro FreeBSD General 2 6th February 2009 04:56 AM


All times are GMT. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick