Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 75434 Details for
Bug 116571
sourcing /etc/profile spews errors if there are no files in /etc/profile.d
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
oops-I-did-it-again.patch
oops-I-did-it-again.patch (text/plain), 485 bytes, created by
Saleem Abdulrasool (RETIRED)
on 2005-12-23 21:23:41 UTC
(
hide
)
Description:
oops-I-did-it-again.patch
Filename:
MIME Type:
Creator:
Saleem Abdulrasool (RETIRED)
Created:
2005-12-23 21:23:41 UTC
Size:
485 bytes
patch
obsolete
>--- /etc/profile 2005-12-20 23:52:15.000000000 -0600 >+++ /etc/profile 2005-12-23 23:20:39.000000000 -0600 >@@ -57,11 +57,11 @@ > PS1="`whoami`@`uname -n | cut -f1 -d.` \$ " > fi > >-if [[ -d /etc/profile.d ]] ; then >- for sh in /etc/profile.d/*.sh ; do >- if [ -r "$sh" ] ; then >- . "$sh" >- fi >- done >- unset sh >+if $(ls /etc/profile.d/*.sh &> /dev/null) ; then >+ for sh in /etc/profile.d/*.sh ; do >+ if [ -r "$sh" ] ; then >+ . "$sh" >+ fi >+ done >+ unset sh > fi
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 116571
: 75434