We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7792e1 commit 680f29aCopy full SHA for 680f29a
1 file changed
init/modules/EESSI/2023.06.lua
@@ -225,10 +225,10 @@ if os.getenv("EESSI_MODULE_UPDATE_PS1") then
225
local prefix = "{EESSI/" .. eessi_version .. "} "
226
if mode() == "load" then
227
-- Prepend prefix to PS1 without evaluating its contents
228
- execute{cmd="PS1='" .. prefix .. "'\"$PS1\"", modeA={"load"}}
+ execute{cmd="PS1=\"" .. prefix .. "$PS1\"", modeA={"load"}}
229
elseif mode() == "unload" then
230
-- Strip the prefix from beginning of PS1
231
- execute{cmd="PS1=\"${PS1#'" .. prefix .. "'}\"", modeA={"unload"}}
+ execute{cmd="PS1=\"${PS1#\"" .. prefix .. "\"}\"", modeA={"unload"}}
232
end
233
234
0 commit comments