Commit ID: 1005FC2DD1F4F616A20
CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/11/28 23:33:49 UTC
Modified files:
bin/mksh : dot.mkshrc
Log message:
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
To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.129 -r1.130 src/bin/mksh/dot.mkshrc