lp:mksh

Created by Thorsten Glaser on 2010-07-09 and last modified on 2021-01-10

Main code repository of The MirBSD Korn Shell

Get this branch:
bzr branch lp:mksh

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Thorsten Glaser
Project:
mksh
Status:
Mature

Import details

Import Status: Reviewed

This branch is an import of the CVS module mksh from :ext:_anoncvs@anoncvs.mirbsd.org:/cvs.

The next import is scheduled to run in 10 hours.

Last successful import was 1 hour ago.

Import started 1 hour ago on alnitak and finished 1 hour ago taking 20 seconds — see the log
Import started 13 hours ago on alnitak and finished 13 hours ago taking 20 seconds — see the log
Import started on 2021-01-18 on alnitak and finished on 2021-01-18 taking 20 seconds — see the log
Import started on 2021-01-17 on alnitak and finished on 2021-01-17 taking 20 seconds — see the log
Import started on 2021-01-17 on izar and finished on 2021-01-17 taking 20 seconds — see the log
Import started on 2021-01-16 on izar and finished on 2021-01-16 taking 20 seconds — see the log
Import started on 2021-01-16 on alnitak and finished on 2021-01-16 taking 20 seconds — see the log
Import started on 2021-01-15 on izar and finished on 2021-01-15 taking 20 seconds — see the log
Import started on 2021-01-15 on izar and finished on 2021-01-15 taking 20 seconds — see the log
Import started on 2021-01-14 on alnitak and finished on 2021-01-14 taking 20 seconds — see the log

Whiteboard

20100709 maxb Approved
20100709 maxb It looks like we'll need the LOSAs to manually accept the ssh host key, suspending for now - pending https://answers.launchpad.net/launchpad-code/+question/117193
20110610 mirabilos Imported fine, thanks!
20120216 mirabilos Fixed server-side error w.r.t. the modules file, import may be unfailed again

Recent revisions

3072. By tg on 2021-01-10

found a new ulimit; using the same letter -R as GNU bash does

3071. By tg on 2020-12-14

sync clog

3070. By tg on 2020-12-12

enhance the tests for the exec builtin:

• one to ensure it never returns (unlike GNU bash)
• rename “modern korn shell” one, as pdksh derivatives and zsh do this
• add Austin reference to ksh88 one as POSIX Issue 8 (the “next” release)
  will require that old behaviour, which we already do (if -o posix)
• let these tests run with echo for cross-shell checking

fix some typos while here

3069. By tg on 2020-11-27

unbreak restoring set ±m (±o monitor) and never restore ±p (±o privileged)
upon FKSH function exit

3068. By tg on 2020-11-27

fix “accent gravis” rendering, oops

3067. By tg on 2020-11-27

we’ll have to let go of the built-in cat as well, for signal reasons

see https://upsilon.cc/~zack/teaching/1314/progsyst/cours-05-signals.pdf
plus mentioned on https://issuetracker.google.com/issues/167231623

3066. By tg on 2020-11-29

make more 'set -ueo pipefail'-safe

mostly by sprinkling set +e where appropriate and using explicit error
handling especially where arithmetics are used, the alternative of doing
http://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/progress-bar#rev1.6 would
be worse; also, end functions with \: (= return 0) in many places and do
not use implicitly-initialised variables; also protect against some unset

3065. By tg on 2020-11-29

restore the ability to ^D on Lb64decode and add for Lb64encode, Lbafh_add

(basically all users of read -[Nn]-1)

3064. By tg on 2020-11-28

stop trashing nōn-line-continuation backslashes

(keeps trashhing ‘#’ inside strings, quoted, etc. but SOL there)

3063. By tg on 2020-11-28

cease making use of the cat builtin

• _dot_mkshrc_wrapped_cat: new, wraps $1 (shifted away) into either
  just "$1" (if no args, or a sole dash as arg) or 「cat "$@" | "$1"」
• smores: use _dot_mkshrc_wrapped_cat, drop subshell/coprocess stuff,
  use local variables only, use || logic for better set -e compat
• hd/hd_mksh: use external cat as _dot_mkshrc_wrapped_cat cannot be
  used since hd_mksh sets stdin to raw mode so ^D stops working
• Lb64decode: use read -rN-1 instead of cat/X
• Lstripcom: use _dot_mkshrc_wrapped_cat

also:
• review print statements, function fallthrough errorlevels
• add missing backslashes before function or externals calls
• insert missing \\builtin before return

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers