[tarent-useful-scripts SCM] {wtf-mksh} branch master updated. mksh-55_wtf1-103-gb5a2171

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Aug 9 06:40:29 CEST 2017 • <20170809044029.26A3B4A030B@evolvis.org>


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Supplemental git repository wtf-mksh for Evolvis project useful-scripts".

The branch, master has been updated
       via  b5a2171c61d7f45c6d1b75d9ce158ed0081b5052 (commit)
       via  889105436dd52bfc2465a12d17deaa0091620f2a (commit)
       via  a20ca48fbd3308654c5cfbcf1e0a9588e2e3632b (commit)
       via  f9bfadd36921dde775016aa52d9a57525ec4bacd (commit)
       via  83fc2b686a3aea42c2d85f608ab5380b39685a42 (commit)
       via  a17506f81ca6d50a05facb58ad77033a150817cc (commit)
       via  523e9e0334a1a2701b452d27167b1f1d18eff32d (commit)
       via  d766304b6abb155d42a9fed81a34dbe8915c8186 (commit)
       via  bee53eb667048a38025f2d463046931200d3f0f6 (commit)
       via  b52badd958bbebd916c9d6aa8b1a91afb6ed54b6 (commit)
       via  b00e5b01b49de4c64fd588d8a89f2f4cc77eab2e (commit)
       via  bc1746bccbe8082dd1cb135309b910fa1e10e9ca (commit)
       via  0af974d9052f1aa9bd498fabc2c9f320bae2e167 (commit)
       via  7f7fb752059e490f73ce41a2fba350ca1edbc67c (commit)
       via  252c4b181b91b5da77975e9fd4dc72ec0954e9cf (commit)
       via  ce64148abb66288bdbc69d712ad03fb570c8a64f (commit)
      from  1aed01576e7cdf7667d7c8ac7df57d6192fdaa19 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b5a2171c61d7f45c6d1b75d9ce158ed0081b5052
Author: mirabilos <t.glaser at tarent.de>
Date:   Wed Aug 9 06:27:06 2017 +0200

    update

commit 889105436dd52bfc2465a12d17deaa0091620f2a
Merge: a20ca48 f9bfadd
Author: mirabilos <t.glaser at tarent.de>
Date:   Wed Aug 9 06:25:53 2017 +0200

    Merge branch 'master' of /home/tglase/mbsd/DEB/mksh/

commit a20ca48fbd3308654c5cfbcf1e0a9588e2e3632b
Merge: 1aed015 bee53eb
Author: mirabilos <t.glaser at tarent.de>
Date:   Wed Aug 9 06:22:19 2017 +0200

    Merge branch 'master' of github.com:MirBSD/mksh

commit f9bfadd36921dde775016aa52d9a57525ec4bacd
Author: mirabilos <m at mirbsd.org>
Date:   Wed Aug 9 04:36:18 2017 +0200

    more documentation is often good

commit 83fc2b686a3aea42c2d85f608ab5380b39685a42
Author: mirabilos <m at mirbsd.org>
Date:   Wed Aug 9 04:17:34 2017 +0200

    update

commit a17506f81ca6d50a05facb58ad77033a150817cc
Merge: d766304 523e9e0
Author: mirabilos <m at mirbsd.org>
Date:   Wed Aug 9 04:03:18 2017 +0200

    Merge tag 'mksh-56'
    
    mksh-R56.tgz

commit 523e9e0334a1a2701b452d27167b1f1d18eff32d
Author: mirabilos <m at mirbsd.org>
Date:   Wed Aug 9 04:02:58 2017 +0200

    mksh-R56.tgz

commit d766304b6abb155d42a9fed81a34dbe8915c8186
Author: mirabilos <m at mirbsd.org>
Date:   Wed Aug 9 03:55:58 2017 +0200

    new editor setup; default to sensible-editor on Debian, too

commit bee53eb667048a38025f2d463046931200d3f0f6
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 21:11:20 2017 +0000

    bump

commit b52badd958bbebd916c9d6aa8b1a91afb6ed54b6
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 21:10:21 2017 +0000

    oh wait, actually…
    
    • besides the previously-set $EDITOR take [jupp jstar mcedit ed vi]
      as sorted list, first one found wins
    • set -eu safe, and in the lksh part

commit b00e5b01b49de4c64fd588d8a89f2f4cc77eab2e
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 20:52:11 2017 +0000

    promote jupp to default editor if installed, in the customisation section

commit bc1746bccbe8082dd1cb135309b910fa1e10e9ca
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 20:50:34 2017 +0000

    comment

commit 0af974d9052f1aa9bd498fabc2c9f320bae2e167
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 20:42:16 2017 +0000

    let hd_mksh take from stdin, great simplification

commit 7f7fb752059e490f73ce41a2fba350ca1edbc67c
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 20:40:25 2017 +0000

    make EBCDIC-safe

commit 252c4b181b91b5da77975e9fd4dc72ec0954e9cf
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 20:38:08 2017 +0000

    perform in chunks, don’t read the entire file into memory ahead

commit ce64148abb66288bdbc69d712ad03fb570c8a64f
Author: tg <tg at mirbsd.org>
Date:   Tue Aug 8 20:22:16 2017 +0000

    always expone mksh’s hexdumper

-----------------------------------------------------------------------

Summary of changes:
 README           |  1 +
 check.t          |  6 ++--
 debian/.mkshrc   |  9 +++++-
 debian/changelog | 44 +++++++++++++++++++++++++---
 debian/mksh.NEWS | 13 +++++++++
 dot.mkshrc       | 89 ++++++++++++++++++++++++++++++++++----------------------
 sh.h             |  4 +--
 7 files changed, 122 insertions(+), 44 deletions(-)

diff --git a/README b/README
index 16c39b2..2671c39 100644
--- a/README
+++ b/README
@@ -14,6 +14,7 @@ The PPA in which packages for a certain derivate lie is:
 
 Distribution targets and their git branches:
 • master ⇒ sid
+  ‣ buster via shared binaries
   ‣ stretch via shared binaries
 • jessie ⇒ jessie
   ‣ xenial (16.04) via dch --bpo, unchanged, via PPA
diff --git a/check.t b/check.t
index e5a8a8c..21938e9 100644
--- a/check.t
+++ b/check.t
@@ -1,4 +1,4 @@
-# $MirOS: src/bin/mksh/check.t,v 1.795 2017/08/07 21:16:29 tg Exp $
+# $MirOS: src/bin/mksh/check.t,v 1.796 2017/08/08 21:11:18 tg Exp $
 # -*- mode: sh -*-
 #-
 # Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
@@ -30,7 +30,7 @@
 # (2013/12/02 20:39:44) http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress/bin/ksh/?sortby=date
 
 expected-stdout:
-	@(#)MIRBSD KSH R56 2017/08/07
+	@(#)MIRBSD KSH R56 2017/08/08
 description:
 	Check base version of full shell
 stdin:
@@ -39,7 +39,7 @@ name: KSH_VERSION
 category: !shell:legacy-yes
 ---
 expected-stdout:
-	@(#)LEGACY KSH R56 2017/08/07
+	@(#)LEGACY KSH R56 2017/08/08
 description:
 	Check base version of legacy shell
 stdin:
diff --git a/debian/.mkshrc b/debian/.mkshrc
index 4be0ae8..e9cdc79 100644
--- a/debian/.mkshrc
+++ b/debian/.mkshrc
@@ -7,6 +7,13 @@ case ${KSH_VERSION:-} in
 *) \return 0 ;;
 esac				# }
 
+# customise your favourite editor here; first one found is used
+for EDITOR in "${EDITOR:-}" sensible-editor jupp jstar mcedit ed vi; do
+	EDITOR=$(\\builtin whence -p "$EDITOR") || EDITOR=
+	[[ -n $EDITOR && -x $EDITOR ]] && break
+	EDITOR=
+done
+
 # source the system-wide mkshrc file
 [[ -s /etc/mkshrc ]] && \. /etc/mkshrc
 
@@ -42,7 +49,7 @@ p=en_GB.UTF-8
 # set a sensible editor
 p=$(\\builtin whence -p jupp) || p=
 [[ -n $p ]] || p=$(\\builtin whence -p jstar) || p=
-[[ -n $p ]] && \\builtin export EDITOR=$p VISUAL=$p
+[[ -n $p ]] && \\builtin export VISUAL=$p
 
 \\builtin unset p
 
diff --git a/debian/changelog b/debian/changelog
index 0421aca..c0cd76d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,8 @@
-mksh (55i.20170808+wtf1) wtf; urgency=low
+mksh (56a+wtf1) wtf; urgency=medium
 
-  * Policy 4.0.1, AFAICT no changes
-  * New CVS snapshot to test against post-unfreeze changes
+  * New release to match 56-1
 
- -- Thorsten Glaser <tg at mirbsd.de>  Tue, 08 Aug 2017 17:11:11 +0200
+ -- Thorsten Glaser <tg at mirbsd.de>  Wed, 09 Aug 2017 06:26:19 +0200
 
 mksh (55a+wtf1) wtf; urgency=low
 
@@ -438,6 +437,43 @@ mksh (50j20141215wtf1) wtf; urgency=high
 
  -- Thorsten Glaser <t.glaser at tarent.de>  Tue, 16 Dec 2014 16:38:09 +0100
 
+mksh (56-1) unstable; urgency=medium
+
+  * Upload to unstable
+  * New upstream formal release:
+    - [tg, Seb] Do not apply alias name restrictions to hash/tilde tracking
+    - [tg] Restore ‘.’, ‘:’ and ‘[’ in alias names (“[[” is still forbidden)
+    - [tg] Fix accidentally defanged $PATHSEP test
+    - [tg] On ^C (INTR and QUIT edchars), shove edit line into history
+    - [iSKUNK, tg] Begin porting to z/OS using EBCDIC encoding, incomplete
+    - [tg] Redo fast character classes code, adding POSIX and other helpers
+    - [tg] bind parses backslash-escaped ‘^’ (and ‘\’) as escaped
+    - [tg] Building with -DMKSH_ASSUME_UTF8=0 no longer causes a known
+      failure in the testsuite
+    - [tg] New test.sh option -U to pass a UTF-8 locale to use in the tests
+    - [tg] re_format(7) BSD: [[ $x = *[[:\<:]]foo[[:>:]]* ]]
+    - [tg, iSKUNK] Use Config in check.pl only if it exists
+    - [tg] New matching code for bracket expressions, full POSIX (8bit)
+    - [komh] Exclude FAT/HPFS/NTFS-unsafe tests on OS/2 (and Cygwin/MSYS)
+    - [tg] Update to Unicode 10.0.0
+    - [tg, selk] Make readonly idempotent
+    - [tg, multiplexd] When truncating the persistent history, do not change
+      the underlying file, do all operations on the locked one; do not stop
+      using the history at all if it has been truncated
+    - [tg, J�rg] Turn off UTF-8 mode upon turning on POSIX mode
+    - [Martijn Dekker, Geoff Clare, many on the Austin list, tg] In POSIX
+      mode, make the exec builtin force a $PATH search plus execve
+    - [tg] Fix GCC 7, Coverity Scan warnings
+    - [tg, Michal Hlavinka] Track background process PIDs even interactive
+    - [tg] Always expose mksh’s hexdump shell function; speed it up by
+      working on the input in chunks; use character classes to make it
+      EBCDIC safe
+    - [tg] Revamp dot.mkshrc default editor selection mechanism
+  * Policy 4.0.1; no changes AFAICT
+  * Update lintian overrides, NEWS entry
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Wed, 09 Aug 2017 04:35:42 +0200
+
 mksh (55-1) experimental; urgency=low
 
   * Upload to experimental during the freeze
diff --git a/debian/mksh.NEWS b/debian/mksh.NEWS
index df162e9..8e1ff92 100644
--- a/debian/mksh.NEWS
+++ b/debian/mksh.NEWS
@@ -1,3 +1,16 @@
+mksh (56-1) unstable; urgency=medium
+
+  The new /etc/skel/.mkshrc moves selection of the default EDITOR
+  (for when the parameter was not set prior to running it) to near
+  the top, before /etc/mkshrc runs. It contains a user-editable
+  priority list (first match wins) and, newly, defaults to Debian’s
+  sensible-editor (after a previously-set $EDITOR, of course). It
+  is therefore recommended to update from the skeleton file.
+
+  Read the full user’s caveat at: http://www.mirbsd.org/mksh.htm#c56
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Wed, 09 Aug 2017 04:34:54 +0200
+
 mksh (55-1) experimental; urgency=low
 
   User-visible changes to the shell language (R55):
diff --git a/dot.mkshrc b/dot.mkshrc
index af55d7d..4a3dfea 100644
--- a/dot.mkshrc
+++ b/dot.mkshrc
@@ -1,5 +1,5 @@
 # $Id$
-# $MirOS: src/bin/mksh/dot.mkshrc,v 1.114 2017/03/19 22:31:26 tg Exp $
+# $MirOS: src/bin/mksh/dot.mkshrc,v 1.121 2017/08/08 21:10:21 tg Exp $
 #-
 # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
 #		2011, 2012, 2013, 2014, 2015, 2016, 2017
@@ -56,6 +56,13 @@ smores() (
 	done
 )
 
+# customise your favourite editor here; the first one found is used
+for EDITOR in "${EDITOR:-}" jupp jstar mcedit ed vi; do
+	EDITOR=$(\\builtin whence -p "$EDITOR") || EDITOR=
+	[[ -n $EDITOR && -x $EDITOR ]] && break
+	EDITOR=
+done
+
 \\builtin alias ls=ls l='ls -F' la='l -a' ll='l -l' lo='l -alo'
 \: "${HOSTNAME:=$(\\builtin ulimit -c 0; \\builtin print -r -- $(hostname \
     2>/dev/null))}${EDITOR:=/bin/ed}${TERM:=vt100}${USER:=$(\\builtin ulimit \
@@ -73,6 +80,7 @@ fi
 \: "${MKSH:=$(\\builtin whence -p mksh)}${MKSH:=/bin/mksh}"
 \\builtin export MKSH
 
+# prompts
 PS4='[$EPOCHREALTIME] '; PS1='#'; (( USER_ID )) && PS1='$'; PS1=$'\001\r''${|
 	\\builtin typeset e=$?
 
@@ -86,6 +94,8 @@ PS4='[$EPOCHREALTIME] '; PS1='#'; (( USER_ID )) && PS1='$'; PS1=$'\001\r''${|
 
 	\\builtin return $e
 } '"$PS1 "
+
+# utilities
 \\builtin alias doch='sudo mksh -c "$(\\builtin fc -ln -1)"'
 \\builtin command -v rot13 >/dev/null || \\builtin alias rot13='tr \
     abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
@@ -99,42 +109,47 @@ elif \\builtin command -v hexdump >/dev/null; then
 	}
 else
 	function hd {
-		\\builtin typeset -Uui16 -Z11 pos=0
-		\\builtin typeset -Uui16 -Z5 hv=2147483647
-		\\builtin typeset dasc line i
-		\\builtin set +U
-
-		\\builtin cat "$@" | if \\builtin read -arN -1 line; then
-			\\builtin typeset -i1 'line[*]'
-			i=0
-			while (( i < ${#line[*]} )); do
-				hv=${line[i++]}
-				if (( (pos & 15) == 0 )); then
-					(( pos )) && \
-					    \\builtin print -r -- "$dasc|"
-					\\builtin print -nr "${pos#16#}  "
-					dasc=' |'
-				fi
-				\\builtin print -nr "${hv#16#} "
-				#XXX EBCDIC, but we need [[:print:]] to fix this
-				if (( (hv < 32) || (hv > 126) )); then
-					dasc+=.
-				else
-					dasc+=${line[i-1]#1#}
-				fi
-				(( (pos++ & 15) == 7 )) && \
-				    \\builtin print -nr -- '- '
-			done
-			while (( pos & 15 )); do
-				\\builtin print -nr '   '
-				(( (pos++ & 15) == 7 )) && \
-				    \\builtin print -nr -- '- '
-			done
-			(( hv == 2147483647 )) || \\builtin print -r -- "$dasc|"
-		fi
+		\\builtin cat "$@" | hd_mksh "$@"
 	}
 fi
 
+# NUL-safe and EBCDIC-safe hexdump (from stdin)
+function hd_mksh {
+	\\builtin typeset -Uui16 -Z11 pos=0
+	\\builtin typeset -Uui16 -Z5 hv=2147483647
+	\\builtin typeset dasc dn line i
+	\\builtin set +U
+
+	while \\builtin read -arn 512 line; do
+		\\builtin typeset -i1 'line[*]'
+		i=0
+		while (( i < ${#line[*]} )); do
+			dn=
+			(( (hv = line[i++]) != 0 )) && dn=${line[i-1]#1#}
+			if (( (pos & 15) == 0 )); then
+				(( pos )) && \
+				    \\builtin print -r -- "$dasc|"
+				\\builtin print -nr "${pos#16#}  "
+				dasc=' |'
+			fi
+			\\builtin print -nr "${hv#16#} "
+			if [[ $dn = [[:print:]] ]]; then
+				dasc+=$dn
+			else
+				dasc+=.
+			fi
+			(( (pos++ & 15) == 7 )) && \
+			    \\builtin print -nr -- '- '
+		done
+	done
+	while (( pos & 15 )); do
+		\\builtin print -nr '   '
+		(( (pos++ & 15) == 7 )) && \
+		    \\builtin print -nr -- '- '
+	done
+	(( hv == 2147483647 )) || \\builtin print -r -- "$dasc|"
+}
+
 # Berkeley C shell compatible dirs, popd, and pushd functions
 # Z shell compatible chpwd() hook, used to update DIRSTACK[0]
 DIRSTACKBASE=$(\\builtin realpath ~/. 2>/dev/null || \
@@ -483,6 +498,7 @@ function enable {
 	i_func[nfunc++]=setenv
 	i_func[nfunc++]=smores
 	i_func[nfunc++]=hd
+	i_func[nfunc++]=hd_mksh
 	i_func[nfunc++]=chpwd
 	i_func[nfunc++]=cd
 	i_func[nfunc++]=cd_csh
@@ -588,6 +604,11 @@ function enable {
 
 \: place customisations below this line
 
+# some defaults follow — you are supposed to adjust these to your
+# liking; by default we add ~/.etc/bin and ~/bin (whichever exist)
+# to $PATH, set $SHELL to mksh, set some defaults for man and less
+# and show a few more possible things for users to begin moving in
+
 for p in ~/.etc/bin ~/bin; do
 	[[ -d $p/. ]] || \\builtin continue
 	[[ $PATHSEP$PATH$PATHSEP = *"$PATHSEP$p$PATHSEP"* ]] || \
diff --git a/sh.h b/sh.h
index e34642d..1f1adb4 100644
--- a/sh.h
+++ b/sh.h
@@ -175,9 +175,9 @@
 #endif
 
 #ifdef EXTERN
-__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.839 2017/08/07 21:56:54 tg Exp $");
+__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.840 2017/08/08 21:11:20 tg Exp $");
 #endif
-#define MKSH_VERSION "R56 2017/08/07"
+#define MKSH_VERSION "R56 2017/08/08"
 
 /* arithmetic types: C implementation */
 #if !HAVE_CAN_INTTYPES


hooks/post-receive
-- 
Supplemental git repository wtf-mksh for Evolvis project useful-scripts
(Evolvis project useful-scripts repository wtf-mksh)


More information about the useful-scripts-commits mailing list