0

I am trying to install a software in my university cluster via ssh login from my PC. So, I first login via ssh, and then according to the software documentation I add the following lines in my bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

export PRIMAL="/projects/imputation_fam/primal"
export APPS="/projects/imputation_fam/apps"
source /projects/imputation_fam/primal/system/dots/bash_profile

But when I try to run the ~/.bash_profile after the above editing, I get the following error:

--bash: /homes/user/.bashrc: line 10: unexpected EOF while looking for   matching `"'
--bash: /homes/user/.bashrc: line 12: syntax error: unexpected end of file

Any help would be highly appreciated.

Edit: The .bashrc file

  # .bashrc

  # Source global definitions
     if [ -f /etc/bashrc ]; then
         . /etc/bashrc
     fi

  # User specific aliases and functions
     umask u=rwx,g=rwx,o=
     "

closed as off-topic by jasonwryan, G-Man, garethTheRed, Archemar, dr01 Nov 9 '15 at 9:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – jasonwryan, garethTheRed, Archemar, dr01
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Add line 10 and 12 of your ~/.bash_profile to your question. – Cyrus Nov 9 '15 at 0:49
  • 1
    Please take a look: shellcheck.net – Cyrus Nov 9 '15 at 0:49
  • I edited my question completely. Hopefully it will help. – Shab86 Nov 9 '15 at 1:16
  • 1
    The error messages refer to .bashrc, not .bash_profile (/homes/user/.bashrc: line 10: and /homes/user/.bashrc: line 12:) - you need to post that as well. – cas Nov 9 '15 at 1:17
  • 1
    Seriously?  You have an error message that says looking for matching ", and you've got a line with a single " on it, and you need to ask for help? – G-Man Nov 9 '15 at 6:21
2

Delete the trailing quote in your .bashrc.

It should look like the following:

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
     . /etc/bashrc
fi
# User specific aliases and functions
umask u=rwx,g=rwx,o=

Not the answer you're looking for? Browse other questions tagged or ask your own question.