You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where I have added "[]" in the list of char to escape. Though it solves the issue for the "set-alias", it breaks the definition of __MODULES_LMCONFLICT variable. During an "unload" command, I get some "&" (instead of ":") as separator during the different modules. This is causing severe error under tcsh
Activity
Laurent-Besson commentedon Jan 30, 2025
On the mailing list, I proposed the following workaround:
proc charEscaped {str {charlist " \\\t{}[]|<>!;#^$&*?"'`()"}} {
return [regsub -all "([$charlist])" $str {\\1}]
}
proc charUnescaped {str {charlist " \\\t{}[]|<>!;#^$&*?"'`()"}} {
return [regsub -all "\\([$charlist])" $str {\1}]
}
where I have added "[]" in the list of char to escape. Though it solves the issue for the "set-alias", it breaks the definition of __MODULES_LMCONFLICT variable. During an "unload" command, I get some "&" (instead of ":") as separator during the different modules. This is causing severe error under tcsh
Laurent-Besson commentedon Jan 30, 2025
Seems GitHub interface has removed some backslashes from my previous comment. To be clear, initial workaround was:
Escape [ and ] used in values within produced shell code
xdelaruelle commentedon Jan 31, 2025
Additional backslashes should be added to escape the brackets on the
regsubcommand. On my way to fix this.xdelaruelle commentedon Jan 31, 2025
As a workaround, the
putscommand can be used as you control with it the shell code that is produced:Escape [ and ] used in values within produced shell code