Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11118 Details for
Bug 18918
/etc/profile assumes /bin/sh links to bash
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for `/etc/profile' to make it work for a true POSIX `/bin/sh'
profile.patch (text/plain), 920 bytes, created by
James Michael Fultz
on 2003-04-25 06:36:53 UTC
(
hide
)
Description:
patch for `/etc/profile' to make it work for a true POSIX `/bin/sh'
Filename:
MIME Type:
Creator:
James Michael Fultz
Created:
2003-04-25 06:36:53 UTC
Size:
920 bytes
patch
obsolete
>--- profile.orig 2003-04-25 00:09:56.000000000 -0400 >+++ profile 2003-04-25 07:09:50.000000000 -0400 >@@ -3,21 +3,21 @@ > > if [ -e "/etc/profile.env" ] > then >- source /etc/profile.env >+ . /etc/profile.env > fi > > #077 would be more secure, but 022 is generally quite realistic > umask 022 > >-if [ `/usr/bin/whoami` = 'root' ] >+if [ "$LOGNAME" = root ] > then >- if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] >+ if [ "$BASH" ] > then > export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' > fi > export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}" > else >- if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] >+ if [ "$BASH" ] > then > export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' > fi >@@ -25,6 +25,8 @@ > fi > unset ROOTPATH > >-if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then >+if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] >+then > export INPUTRC="/etc/inputrc" > 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 18918
:
11098
| 11118