aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/sciteco.1.in
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-05 23:42:03 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-08 18:39:16 +0200
commit4686d184967c0c747777c8edcc6b00dc023b8aa9 (patch)
treeb3775d06e14450117c4c17b85e87fa635a02c689 /doc/sciteco.1.in
parent9618aadc5e31c688247f57ac55fe4e97a440f5c3 (diff)
downloadsciteco-4686d184967c0c747777c8edcc6b00dc023b8aa9.tar.gz
Windows: normalize $COMSPEC
* Environment variables are case insensitive on Windows while SciTECO variables are case sensitive. We must therefore make sure that we first unset any $COMSPEC or $ComSpec from the environment before resetting it, thereby fixing its case. * Fixes command execution via <EC> on systems where the variable was not called $ComSpec.
Diffstat (limited to 'doc/sciteco.1.in')
-rw-r--r--doc/sciteco.1.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/sciteco.1.in b/doc/sciteco.1.in
index 5441621..6747c5e 100644
--- a/doc/sciteco.1.in
+++ b/doc/sciteco.1.in
@@ -242,15 +242,19 @@ Initialization of this variable ensures that the
\(lq$HOME\(rq Q-Register is available even on Windows
and the home directory can always be re-configured.
.TP
-.SCITECO_TOPIC "$SHELL" "SHELL" "$ComSpec" "ComSpec"
-.BR SHELL " or " ComSpec
+.SCITECO_TOPIC "$SHELL" "SHELL" "$COMSPEC" "COMSPEC"
+.BR SHELL " or " COMSPEC
Path of the command interpreter used by \fBEG\fP and \fBEC\fP
commands if UNIX98 shell emulation is \fIdisabled\fP.
-\fBSHELL\fP is used on UNIX-like systems, while \fBComSpec\fP
+\fBSHELL\fP is used on UNIX-like systems, while \fBCOMSPEC\fP
is used on DOS-like systems (like Windows).
Both variables are usually already set in the process environment
but are initialized to \(lq/bin/sh\(rq or \(lqcmd.exe\(rq
should they nevertheless be unset.
+Since environment variables are case-insensitive on
+DOS-like systems and different spellings exist for \fBCOMSPEC\fP,
+the name of the variable is always normalized to all-upper-case
+by \*(ST.
.TP
.SCITECO_TOPIC "$SCITECOCONFIG" "SCITECOCONFIG"
.B SCITECOCONFIG