.bashrc question
Ian Coetzee
ubuntu at iancoetzee.za.net
Wed Oct 28 05:56:37 UTC 2009
On Wed, Oct 28, 2009 at 6:46 AM, David Armour <d.f.armour at shaw.ca> wrote:
> 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.
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
David
it doesnt state that the missing '"' is on line 72, its merely says
that that is where it stopped looking for it. The problem is on a
previous line, you would have to go through your .bashrc file and
match all the '"'s to find the oddball out.
I usually print the file for ease of reading.
Another possibility is to open the file in vim ( it usually syntax
highlight it ) then you can quickly see where it goes wrong.
Regards
More information about the ubuntu-users
mailing list