Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588 - /etc/profile not compatible with zsh
Summary: /etc/profile not compatible with zsh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-07 14:08 UTC by Naresh Donti
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.