[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash EOF error
From: |
Herr Sonnenberg |
Subject: |
Re: bash EOF error |
Date: |
Tue, 8 Oct 2002 17:20:21 -0400 (EDT) |
Chet,
Here is the ~/.bashrc:
-------------------------------
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# default ADF navigational aliases
alias adf='cd $HOME/adf'
alias basis='cd $HOME/adf/basis'
alias run='cd $HOME/adf/run'
alias t21='cd $HOME/adf/t21'
______________________________________
The /etc/bashrc is a follows:
_____________________________________
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# are we an interactive shell?
if [ "$PS1" ]; then
if [ -x /usr/bin/tput ]; then
if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb"
terminal
stty erase `tput kbs`
elif [ -x /usr/bin/wc ]; then
if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with
"dumb" terminal
stty erase `tput kbs`
fi
fi
fi
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:
${PWD}\007"'
;;
*)
;;
esac
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -x $i ]; then
. $i
fi
done
fi
fi
_________________________
The offending lines in the .bash_profile file are the if statements. If
those are commented out the error goes away.
Jason
On Tue, 8 Oct 2002, Chet Ramey wrote:
> > I'm using bash-2.04-21 and I can not figure out what is wrong with my
> > .bash_profile I keep recieving unexpected end of file errors. I've
> > included the text of this file below. I'm sure this is an easy fix but I
> > just don't see it.
>
> I suspect that the problem lies in ~/.bashrc.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ( ``Discere est Dolere'' -- chet )
>
> Chet Ramey, ITS, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
>
>
> _______________________________________________
> Bug-bash mailing list
> Bug-bash@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-bash
>