about summary refs log tree commit diff
path: root/pkgs/development/interpreters/tcl
diff options
context:
space:
mode:
authorAndrew Brooks <andrew.brooks@flightaware.com>2021-05-11 10:27:51 -0500
committerAndrew Brooks <andrew.brooks@flightaware.com>2021-05-21 15:18:29 -0500
commit927251e7814d9c530dc0ed89a2a887a692bc8187 (patch)
treeae4599218b918898b1ab507b74c1bcecd6c46483 /pkgs/development/interpreters/tcl
parent49db5c9de6c6f8a79c30b5364edda6040a39521d (diff)
tcl: avoid readonly local in package hook
If a path with a space were added to TCLLIBPATH, _addToTclLibPath
would attempt to mutate the tclPkg local and fail.
Diffstat (limited to 'pkgs/development/interpreters/tcl')
-rw-r--r--pkgs/development/interpreters/tcl/tcl-package-hook.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/tcl/tcl-package-hook.sh b/pkgs/development/interpreters/tcl/tcl-package-hook.sh
index 261feda55af11..f729096a36e6f 100644
--- a/pkgs/development/interpreters/tcl/tcl-package-hook.sh
+++ b/pkgs/development/interpreters/tcl/tcl-package-hook.sh
@@ -4,7 +4,7 @@
 
 # Add a directory to TCLLIBPATH, provided that it exists
 _addToTclLibPath() {
-    local -r tclPkg="$1"
+    local tclPkg="$1"
     if [ -z "$tclPkg" ]; then
         return
     fi