#1834 /etc/profile patch

MSYS
assigned
None
Task
none
Unknown
True
2013-02-14
2011-11-01
Earnie Boyd
No

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.

Discussion

  • Earnie Boyd

    Earnie Boyd - 2013-02-14

    Ticket moved from /p/mingw/patches/500/

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-14
    • labels: msys -->
    • status: open --> assigned
    • milestone: --> MSYS
    • type: --> Task
    • resolution: --> none
    • category: --> Unknown
    • patch_attached: --> True
     
  • Keith Marshall

    Keith Marshall - 2013-02-14

    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
       ...
    fi
    

    and adds

    unset i
    

    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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks