You are not logged in.

#1 2011-02-24 02:19:21

neofax
Member
Registered: 2010-02-02
Posts: 29

bashrc problem with new install

Every time I open a terminal under my normal account, I get the following error:

bash: /home/terry/.bashrc: line 1269: syntax error near unexpected token `('
bash: /home/terry/.bashrc: line 1269: `        ?(-)c*f)'

How can I fix that?

Offline

#2 2011-02-24 02:27:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: bashrc problem with new install

One way to help us assist you would be to pastebin your .bashrc

https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-02-24 22:17:37

neofax
Member
Registered: 2010-02-02
Posts: 29

Re: bashrc problem with new install

Here is the pastebin:  http://pastebin.mozilla.org/1096443

Offline

#4 2011-02-24 22:36:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: bashrc problem with new install

That is interesting, but where did it come from?  It is not part of a normal Arch installation.  Is/was  your home directory used with another distro?. 

Do you use all (or any) of that script?  If not, you could just rename the file to something else so that it does not get invoked.  Unfortunately, by bash-fu is not up to the task of debugging that script.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-02-24 22:42:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: bashrc problem with new install

Start with a .bashrc that you actually understand: keep it simple...

https://wiki.archlinux.org/index.php/Bash#Configuration


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2011-02-25 20:04:20

neofax
Member
Registered: 2010-02-02
Posts: 29

Re: bashrc problem with new install

That bashrc came from my old Linux Mint bashrc.

Offline

#7 2011-02-25 21:25:05

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: bashrc problem with new install

The bashrc of yours contains too many Linux Mint specific generalizations.
Better start over again with what the bash package provides:
/etc/profile (and the files in the /etc/profile.d/ folder)
/etc/bash.bashrc
And a fresh copy of ~/.bashrc (rename your Mint one for later reference if you like) taken from /etc/skel/.bashrc

Note: The files in the /etc/skel folder will be copied into a new user's home directory. Thus you may as well create a new (test) user and start with the files from there.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB