Fossil SCM

auto.def: change the invocation of 'exec /bin/sh' to 'exec sh' as a consolation for Unix-like-environments on Windows, where the former does not work but the latter does.

stephan 2025-02-08 21:27 trunk
Commit 822a050d52619719a8ae091da3dfc09c9d5e43ae08ad93d164696905478ae310
1 file changed +1 -1
+1 -1
--- auto.def
+++ auto.def
@@ -96,11 +96,11 @@
9696
cc-check-progs tclsh
9797
set hbtd /usr/local/Cellar/tcl-tk
9898
if {[string equal false [get-define TCLSH]]} {
9999
msg-result "WARNING: 'make test' will not run here."
100100
} else {
101
- set v [exec /bin/sh -c "echo 'puts \$tcl_version' | tclsh"]
101
+ set v [exec sh -c "echo 'puts \$tcl_version' | tclsh"]
102102
if {[expr {$v >= 8.6}]} {
103103
msg-result "Found Tclsh version $v in the PATH."
104104
define TCLSH tclsh
105105
} elseif {[file isdirectory $hbtd]} {
106106
# This is a macOS system with the Homebrew version of Tcl/Tk
107107
--- auto.def
+++ auto.def
@@ -96,11 +96,11 @@
96 cc-check-progs tclsh
97 set hbtd /usr/local/Cellar/tcl-tk
98 if {[string equal false [get-define TCLSH]]} {
99 msg-result "WARNING: 'make test' will not run here."
100 } else {
101 set v [exec /bin/sh -c "echo 'puts \$tcl_version' | tclsh"]
102 if {[expr {$v >= 8.6}]} {
103 msg-result "Found Tclsh version $v in the PATH."
104 define TCLSH tclsh
105 } elseif {[file isdirectory $hbtd]} {
106 # This is a macOS system with the Homebrew version of Tcl/Tk
107
--- auto.def
+++ auto.def
@@ -96,11 +96,11 @@
96 cc-check-progs tclsh
97 set hbtd /usr/local/Cellar/tcl-tk
98 if {[string equal false [get-define TCLSH]]} {
99 msg-result "WARNING: 'make test' will not run here."
100 } else {
101 set v [exec sh -c "echo 'puts \$tcl_version' | tclsh"]
102 if {[expr {$v >= 8.6}]} {
103 msg-result "Found Tclsh version $v in the PATH."
104 define TCLSH tclsh
105 } elseif {[file isdirectory $hbtd]} {
106 # This is a macOS system with the Homebrew version of Tcl/Tk
107

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button