You are not logged in.
Pages: 1
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
One way to help us assist you would be to pastebin your .bashrc
Offline
Here is the pastebin: http://pastebin.mozilla.org/1096443
Offline
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
Start with a .bashrc that you actually understand: keep it simple...
Offline
That bashrc came from my old Linux Mint bashrc.
Offline
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
Pages: 1