Results 1 to 2 of 2

Thread: Problems with .bash_profile

  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Default Problems with .bash_profile

    Hi,

    I have problems with Putty, after login, show this errors:

    : command not found
    ': not a valid identifier
    ': not a valid identifier
    : command not found
    -bash: /home/interny6/.bash_profile: line 11: syntax error near unexpected token `fi'
    -bash: /home/interny6/.bash_profile: line 11: `fi'

    I can't find the solution, i readed some forums.

    .bash_profile:
    # .bash_profile

    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME

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

    .bashrc:
    # .bashrc

    # User specific aliases and functions
    export PATH="$PATH:$HOME/packages/bin:$HOME/gems/bin"
    export GEM_HOME="$HOME/gems"
    export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/1.8"
    export GEM_CACHE="$GEM_HOME/cache"


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

    Some idea?

    Thanks a lot.

  2. #2
    Join Date
    Apr 2008
    Posts
    2

    Default

    Please, someone can help me? or some .bashrc and .bash_profile example to try with this?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •