You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ksh -n: Fix spurious warning for --(no)backslashctrl (#932)
src/cmd/ksh93/sh/parse.c: simple():
- During noexec, use strmatch() to more precisely identify obsolete
options passed to set(1). This fixes a bug where 'ksh -n' would
falsely flag --nobackslashctrl as obsolete, and also allows for
the detection of other obsolescent options besides just '-k'.
Additionally, do this in a loop to check all of the options
passed to set (rather than just the first option).
- Also check for and warn against the obsolete 'alias -x' (ksh93
has never supported exported aliases).
src/cmd/ksh93/{data/builtins.c,include/builtins.h,sh/shcomp.c}:
- More clearly document which options to set(1) are obsolete.
- Add SYSALIAS offset macro and use that instead of strcmp.
- Do not compile in usage information for arrowkeysearch or
backslashctrl if the editor modes are not compiled in.
0 commit comments