diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | pdksh/kshrc | 7 | ||||
-rwxr-xr-x | test/pdksh | 6 |
4 files changed, 22 insertions, 0 deletions
@@ -23,6 +23,7 @@ install-ncmcpp \ install-newsbeuter \ install-mysql \ + install-pdksh \ install-perlcritic \ install-perltidy \ install-psql \ @@ -198,6 +199,9 @@ install-i3 : install-x install -m 0755 -d -- "$(HOME)"/.i3 install -pm 0644 -- i3/* "$(HOME)"/.i3 +install-pdksh : test-pdksh + install -pm 0644 -- pdksh/kshrc "$(HOME)"/.kshrc + install-maildir : install -m 0755 -d -- \ "$(HOME)"/Mail/inbox/cur \ @@ -327,6 +331,9 @@ test-bin : test-games : test/games +test-pdksh : + test/pdksh + test-man : test/man diff --git a/README.markdown b/README.markdown index a9e411fd..caa9d86c 100644 --- a/README.markdown +++ b/README.markdown @@ -62,6 +62,8 @@ Configuration is included for: * [`mysql(1)`](http://linux.die.net/man/1/mysql) -- Command-line MySQL client * [Ncmpcpp](http://rybczak.net/ncmpcpp/) -- ncurses music player client * [Newsbeuter](https://www.newsbeuter.org/) -- Terminal RSS/Atom feed reader +* [`pdksh(1)`](https://www.cs.mun.ca/~michael/pdksh/) -- public domain fork of + the Korn shell * [`psql(1)`](http://linux.die.net/man/1/psql) -- Command-line PostgreSQL client * [Perl::Critic](http://perlcritic.com/) -- static source code analysis engine diff --git a/pdksh/kshrc b/pdksh/kshrc new file mode 100644 index 00000000..3076dfe8 --- /dev/null +++ b/pdksh/kshrc @@ -0,0 +1,7 @@ +# Emacs-style key bindings +set -o braceexpand +set -o emacs + +# Save history +HISTFILE=$HOME/.sh_history +HISTSIZE=$((1 << 12)) diff --git a/test/pdksh b/test/pdksh new file mode 100755 index 00000000..5ebd556a --- /dev/null +++ b/test/pdksh @@ -0,0 +1,6 @@ +#!/bin/sh +for ksh in ksh/* ; do + [ -f "$ksh" ] || continue + ksh -n "$ksh" || exit +done +printf 'All ksh(1) scripts parsed successfully.\n' |