Date: Tue, 09 Dec 2008 16:21:57 -0800 From: Noah <admin2@enabled.com> To: Noah <admin2@enabled.com>, User Questions <freebsd-questions@freebsd.org> Subject: Re: bashrc configuration question: syntax error: unexpected end of file Message-ID: <493F0BA5.50206@enabled.com> In-Reply-To: <20081209225135.GA3409@hal.rescomp.berkeley.edu> References: <493EE2EB.2070104@enabled.com> <20081209225135.GA3409@hal.rescomp.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Christopher Cowart wrote: > Noah wrote: >> 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$ cat .bashrc >> #nc_fix() { sudo kill -9 $"(ps auxwww | grep [nN]cproxyd | awk '{print >> $2}')" } >> nc_fix() { sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print >> $2}') } > > The } is a statement, and must be preceded with a newline or a ;. > > Try: > > nc_fix() { sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print > $2}'); } > > or > > nc_fix() { > sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print $2}') > } > > Everything that follows right now is part of the definition of nc_fix(). > When you get to the end of the file, it says "Hey! I'm still defining a > function!" > Christopher - you are the winner. Please pick up your consolation prize at the door :) Cheers, noah
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?493F0BA5.50206>