Results 1 to 2 of 2
In Terminal ,
/root/.bash_profile: line 14: syntax error: unexpected end of file . I checked my .Bash_profile . No Modification I made in the File. I am new to CentOS ...
- 08-29-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 1
/root/.bash_profile: line 14: syntax error: unexpected end of file
In Terminal ,
/root/.bash_profile: line 14: syntax error: unexpected end of file . I checked my .Bash_profile . No Modification I made in the File. I am new to CentOS and i Completely New to Linux. Can Anyone help me to Solve the Problem
This is the .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
and My /etc/profile is
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|
$1($|
" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
pathmunge /home/dmadmin/oracle/product/10.2.0/db_2/bin
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
ORACLE_HOME=/home/dmadmin/oracle/product/10.2.0/db_2; export ORACLE_HOME
lIBPATH=$ORACLE_HOME/lib;$LIBPATH; export LIBPATH
ORACLE_SID=orcl; export ORACLE_SID
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
unset pathmunge
Can Anyone Help me ?
Thanks and regards
Madhu
- 08-29-2008 #2
i don't know more about that
but, u can try to add # against to this two line
PATH=$PATH:$HOME/bin
export PATH
in your .bash_profile


Reply With Quote
