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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to