<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch release-2.6
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/853273ecb29644b27a70280d6022cc59ce4d08d0">https://github.com/macports/macports-base/commit/853273ecb29644b27a70280d6022cc59ce4d08d0</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 853273ecb29644b27a70280d6022cc59ce4d08d0
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Sat Oct 12 11:38:03 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> mportinit: Disable running unknown cmds in $SHELL
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Tcl defaults to running unknown commands in a shell automatically. This
</span><span style='display:block; white-space:pre;color:#404040;'> can inadvertently lead to running things in the shell instead of using
</span><span style='display:block; white-space:pre;color:#404040;'> a Tcl builtin, e.g. due to a typo.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> It does not seem like we are currently using this functionality, and we
</span><span style='display:block; white-space:pre;color:#404040;'> really shouldn't, so disable it on startup to ensure it is not used.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit fbc1d79b3728164962cb02e7f7d2d723d94421b0)
</span>---
src/macports1.0/macports.tcl | 4 ++++
1 file changed, 4 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 6b11a1e..2e18650 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -587,6 +587,10 @@ proc macports::_is_valid_developer_dir {dir} {
</span>
proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Disable unknown(n)'s behavior of running unknown commands in the system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # shell
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ::auto_noexec yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {$up_ui_options eq {}} {
array set macports::ui_options {}
} else {
</pre><pre style='margin:0'>
</pre>