.bashrc question

David Armour d.f.armour at shaw.ca
Wed Oct 28 04:46:02 UTC 2009


Bash confusion reigns!

I'm getting the following two lines at the top of the terminal display:

bash: /home/dave3/.bashrc: line 72: unexpected EOF while looking for 
matching `"'
bash: /home/dave3/.bashrc: line 91: syntax error: unexpected end of file

The referenced portions of /home/dave3/.bashrc:

*********************************************************
70  # enable color support of ls and also add handy aliases
71  if [ "$TERM" != "dumb" ]; then
72      eval "`dircolors -b`"			## missing '"'??
73      alias ls='ls --color=auto'
74      #alias dir='ls --color=auto --format=vertical'
75      #alias vdir='ls --color=auto --format=long'
76  fi
77  
78  # some more ls aliases
79  #alias ll='ls -l'
80  #alias la='ls -A'
81  #alias l='ls -CF'
82  
83  # enable programmable completion features (you don't need to enable
84  # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
85  # sources /etc/bash.bashrc).
86  if [ -f /etc/bash_completion ]; then
87      . /etc/bash_completion
88  fi
89  
90  
*********************************************************

I can't see a missing `"' at line 72, nor any obvious reason why bash 
would find the end of the .bashrc file at line 90 'unexpected' in any way. 
Can anybody? Am I missing something obvious? (Wouldn't be the first time...)

TIA.





More information about the ubuntu-users mailing list