Moved definitions of the USER and GROUP environmental variables from

SetupEnvironment to /etc/profile and use the "id" command. No need to set
SHELL, since the shell sets it anyway. Fixes #5966.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36788 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-05-11 14:55:23 +00:00
parent 1e9e9da389
commit e4a4fcc9fb
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,9 @@
echo -e "\nWelcome to the Haiku shell.\n"
export USER=`id -un`
export GROUP=`id -gn`
if [ -z $BE_HOST_CPU ]; then
. /boot/system/boot/SetupEnvironment
fi

View File

@ -4,9 +4,6 @@
#
export HOME=/boot/home
export SHELL=/bin/sh
export USER=baron
export GROUP=users
BUILDHOME=/boot/develop
BETOOLS="$BUILDHOME/tools/gnupro/bin"