Commit ID:      1005EC0358F16B0BEC4
CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2020/05/16 18:53:11 UTC

Modified files:
        bin/mksh       : check.t main.c misc.c mksh.1 sh.h

Log message:
set +o now provides a command to restore the current options settings

uses the new “set -o .reset”, which is session-specific, i.e. restores
the settings from shell start minus posix/sh/utf8mode/braceexpand, e.g.
 emacs, inherit-xtrace, interactive, monitor, nohup, stdin, vi-tabcomplete
in an interactive shell, but in a script shell just (for example)
 emacs, inherit-xtrace, nohup, trackall, vi-tabcomplete

new, experimental, but no regression wrt. the old one

adjust regression tests to switch from
 [[ $(set +o) == *@(-o sh)@(| *) ]] && echo sh || echo nosh
to
 [[ -o sh ]] && echo sh; [[ -o !sh ]] && echo nosh
as they should have been using for a while

new regression test; ksh93 and GNU bash agree

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.842 -r1.843 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.364 -r1.365 src/bin/mksh/main.c
cvs -R rdiff -kk -upr1.297 -r1.298 src/bin/mksh/misc.c
cvs -R rdiff -kk -upr1.489 -r1.490 src/bin/mksh/mksh.1
cvs -R rdiff -kk -upr1.895 -r1.896 src/bin/mksh/sh.h

Reply via email to