Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 400276 Details for
Bug 548960
zsh should provide the pathmunge function when loading profile.d scripts from zshrc
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Provide pathmunge for profile.d scripts
zsh-pathmunge.patch (text/plain), 871 bytes, created by
Ville Skyttä
on 2010-03-15 17:55:05 UTC
(
hide
)
Description:
Provide pathmunge for profile.d scripts
Filename:
MIME Type:
Creator:
Ville Skyttä
Created:
2010-03-15 17:55:05 UTC
Size:
871 bytes
patch
obsolete
>Index: zshrc.rhs >=================================================================== >RCS file: /cvs/pkgs/rpms/zsh/devel/zshrc.rhs,v >retrieving revision 1.12 >diff -u -r1.12 zshrc.rhs >--- zshrc.rhs 31 Jan 2008 14:38:48 -0000 1.12 >+++ zshrc.rhs 15 Mar 2010 17:51:40 -0000 >@@ -15,6 +15,18 @@ > # bindkey -e # emacs key bindings > bindkey ' ' magic-space # also do history expansion on space > >+# Provide pathmunge for /etc/profile.d scripts >+pathmunge() >+{ >+ if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)" ; then >+ if [ "$2" = "after" ] ; then >+ PATH=$PATH:$1 >+ else >+ PATH=$1:$PATH >+ fi >+ fi >+} >+ > _src_etc_profile_d() > { > # Make the *.sh things happier, and have possible ~/.zshenv options like >@@ -34,5 +46,5 @@ > } > _src_etc_profile_d > >-unset -f _src_etc_profile_d >+unset -f pathmunge _src_etc_profile_d >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 548960
: 400276