From 4c7c5803bd035b5a735b57269b89dc0aab5e8f8a Mon Sep 17 00:00:00 2001 From: Johnothan King Date: Wed, 24 Mar 2021 13:14:17 -0700 Subject: [PATCH] Add `NOECHOE` and `TEST_L` to the list of `SHOPT` options (#242) src/cmd/ksh93/bltins/print.c: - Rename the unlisted and misleadingly named SHOPT_ECHOE option (which disables, not enables, 'echo -e') to SHOPT_NOECHOE. src/cmd/ksh93/SHOPT.sh: - Add the SHOPT_NOECHOE and SHOPT_TEST_L compile time options to the list of SHOPT options. Since there is a probe for TEST_L, set it to probe (empty) by default. NOECHE is off by default. src/cmd/ksh93/features/options: - Small bugfix: Allow SHOPT_TEST_L to be manually enabled on systems that don't support '$(whence -p test) -l /foo'. - Add a comment describing the SHOPT_MULTIBYTE feature test and separate it from the SHOPT_DEVFD test. --- src/cmd/ksh93/SHOPT.sh | 2 ++ src/cmd/ksh93/bltins/print.c | 4 ++-- src/cmd/ksh93/features/options | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cmd/ksh93/SHOPT.sh b/src/cmd/ksh93/SHOPT.sh index 845da9470..b98e9ea3f 100644 --- a/src/cmd/ksh93/SHOPT.sh +++ b/src/cmd/ksh93/SHOPT.sh @@ -25,6 +25,7 @@ SHOPT HISTEXPAND=1 # csh-style history file expansions SHOPT KIA= # ksh -R