From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 22:42:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71D791065675 for ; Tue, 9 Dec 2008 22:42:56 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: from smtp109.prem.mail.ac4.yahoo.com (smtp109.prem.mail.ac4.yahoo.com [76.13.13.92]) by mx1.freebsd.org (Postfix) with SMTP id 1E8098FC16 for ; Tue, 9 Dec 2008 22:42:56 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: (qmail 77492 invoked from network); 9 Dec 2008 22:42:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Subject:Message-ID:In-Reply-To:References:Reply-To:Organization:X-Mailer:Face:X-Face:Mime-Version:Content-Type; b=aFnVjScFJk9idPJgWtVv+6Ac3Y9cH2NwQSlpGXqvByM0xiuvTSNDwafODYaUPcmMVVS+1vbCxMi64VPMx1zrhvFmNkbgI7b1eXDPY0F/kG+MMWwzUclfo4yptzuafIW/SOzyjWlYpClZAD6ERkpYyeHXUCkB16DFH3/PG2AgZ8w= ; Received: from unknown (HELO scorpio) (gesbbb@76.23.177.172 with login) by smtp109.prem.mail.ac4.yahoo.com with SMTP; 9 Dec 2008 22:42:55 -0000 X-YMail-OSG: grQ96oIVM1kh54KYhUy8r2IRfbAfKKj0PoCZ624.m_ZfilBhLCZ9bh_31gRW2tmIP0nsL91fMK7rNYFnEBc3cr3Jp7oIXdytOi2YtgoepsEWF4JaEBw33HEIhc9ndWIpTx5_lHHacOKtp.E4n5TIh5Z0SAYJAUAnKHb1GxedkBJ46N8sid4WY92Q.iIUKs7B_tCDomYhcgz9mvSY0.dHBbIrxaH.LA-- X-Yahoo-Newman-Property: ymail-3 Date: Tue, 9 Dec 2008 17:42:45 -0500 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20081209174245.40db9129@scorpio> In-Reply-To: <493EE2EB.2070104@enabled.com> References: <493EE2EB.2070104@enabled.com> Organization: seibercom.net X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd6.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/EKnAhtn/T0qSb7cAJeuD0Kj"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: Re: bashrc configuration question: syntax error: unexpected end of file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 22:42:56 -0000 --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 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--