Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2008 17:42:45 -0500
From:      Jerry <gesbbb@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: bashrc configuration question: syntax error: unexpected end of file
Message-ID:  <20081209174245.40db9129@scorpio>
In-Reply-To: <493EE2EB.2070104@enabled.com>
References:  <493EE2EB.2070104@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/EKnAhtn/T0qSb7cAJeuD0Kj
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, 09 Dec 2008 13:28:11 -0800
Noah <admin2@enabled.com> wrote:

>Hi there,
>
>I am unable to figure out why I am getting the following error:
>"-bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of
>file localhost:~ user$"
>
>
>------------ Here are the relevant hask configuration files ------
>
>localhost:~ user$ cat .bash_profile
>if [ -f ~/.bashrc ]; then
>      source ~/.bashrc
>fi
>localhost:~ user$ cat .bashrc
>#nc_fix() { sudo kill -9 $"(ps auxwww | grep [nN]cproxyd | awk '{print=20
>$2}')" }
>nc_fix() { sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print=20
>$2}') }
>
># enable programmable completion features (you don't need to enable
># this, if it's already enabled in /etc/bash.bashrc and /etc/profile
># sources /etc/bash.bashrc).
>if [ -f /etc/bash_completion ]; then
>     . /etc/bash_completion
>fi
>localhost:~ user$
>
>
>
>--- snip ---

I once had a similar problem; however the line number given had nothing
to do with where the actual error was. In my case, I had a duplicate
';' I believe located in the file. You will probably have to go through
the file line by line to locate the problem. Perhaps commenting out
sections and seeing if the problem continues might help.


--=20
Jerry
gesbbb@yahoo.com

It destroys one's nerves to be amiable every day to the same human
being. -- Benjamin Disraeli

--Sig_/EKnAhtn/T0qSb7cAJeuD0Kj
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkk+9G0ACgkQBvaKIJWWCO3ShQCfTdzuCXo5+8cOUhkWOL6LGyVd
xRwAoJd6uZTl0fsudKOfytlcEb3XYUjh
=3/l5
-----END PGP SIGNATURE-----

--Sig_/EKnAhtn/T0qSb7cAJeuD0Kj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081209174245.40db9129>