bashrc configuration question: syntax error: unexpected end of
 file
    Noah 
    admin2 at enabled.com
       
    Tue Dec  9 16:22:04 PST 2008
    
    
  
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
    
    
More information about the freebsd-questions
mailing list