I found that I wanted to modify the PS1 variable in profile.d/*.sh and couldn't. The reason is this file overrode the variable I had set. I've created a patch to move execution of profile.d/*.sh to the end of the file.
Ticket moved from /p/mingw/patches/500/
FWIW, this is consistent with the placement of /etc/profile.d/*.sh processing in Debian Linux, (and derivatives).
A further note: Debian also wraps the "for" loop within
if [ -d /etc/profile.d ]; then
immediately after the "done" statement of the "for" loop, to avoid polluting the environment with the residual assignment of the iterator variable. At least adding the "unset" would also be useful in MSYS, IMO.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.