Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 588

Summary: /etc/profile not compatible with zsh
Product: Gentoo Linux Reporter: Naresh Donti <ndonti>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Naresh Donti 2002-02-07 14:08:09 UTC
It breaks at line number 9

Here is a patch to fix it, only changes the '==' to '=' in that line

*** profile     Thu Feb  7 14:03:09 2002
--- profile.orig        Thu Feb  7 14:00:52 2002
***************
*** 6,12 ****
  #077 would be more secure, but 022 is generally quite realistic
  umask 022
  
! if [ `/usr/bin/whoami` = 'root' ] ; then
        export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        export PATH=/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}
  else
--- 6,12 ----
  #077 would be more secure, but 022 is generally quite realistic
  umask 022
  
! if [ `/usr/bin/whoami` == 'root' ] ; then
        export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        export PATH=/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}
  else
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-02-14 21:03:54 UTC
Should be fixed on CVS a a while.