Using XFCE on openSUSE 13.1, my bash.bashrc has 2 bugs in it. Both of them are when a custom function/routine is the same name as an internal command.
1st bug is at line 57. This line:
Generates this error:
There is nothing syntactically wrong with that line - bash just doesn't like creating a function with the same name as a built-in command. Doing a global search and replace that changes "path" to "ckpath" fixes the error.
Once that bug was fixed, this error appeared:
Since there is a built-in remount command, and I never use remount anyway, I just commented out line 12 in /etc/profile.d/alias.bash
1st bug is at line 57. This line:
Code:
path ()
Code:
-bash: /etc/bash.bashrc: line 57: syntax error near unexpected token `('
-bash: /etc/bash.bashrc: line 57: `path ()'
Once that bug was fixed, this error appeared:
Code:
-bash: /etc/profile.d/alias.bash: line 12: syntax error near unexpected token `('
-bash: /etc/profile.d/alias.bash: line 12: ` remount () { /bin/mount -o remount,${1+"$@"} ; }'