Merge pull request #10688 from hraban/fix/develop-aliases

fix: don’t expand aliases in develop stdenv setup
This commit is contained in:
Robert Hensing 2024-05-20 15:59:21 +02:00 committed by GitHub
commit 20ed0c02b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -610,7 +610,7 @@ struct CmdDevelop : Common, MixEnvironment
}
else {
script = "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;\n" + script;
script = "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;\nshopt -u expand_aliases\n" + script + "\nshopt -s expand_aliases\n";
if (developSettings.bashPrompt != "")
script += fmt("[ -n \"$PS1\" ] && PS1=%s;\n",
shellEscape(developSettings.bashPrompt.get()));