Results 1 to 4 of 4

Thread: The "source" command

  1. #1
    Join Date
    May 2009
    Location
    New York
    Beans
    109
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    The "source" command

    $ source $iraf/unix/hlib/irafuser.csh
    bash: /iraf/iraf//unix/hlib/irafuser.csh: line 10: syntax error near unexpected token `else'
    bash: /iraf/iraf//unix/hlib/irafuser.csh: line 10: `else if (-f /etc/SuSE-release) then'

    what should I do instead?

  2. #2
    Join Date
    May 2009
    Beans
    104

    Re: The "source" command

    source is for bash. you are running source on csh scripts. try "rehash" instead.

  3. #3
    Join Date
    May 2009
    Location
    New York
    Beans
    109
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: The "source" command

    bash: rehash: command not found

  4. #4
    Join Date
    May 2009
    Beans
    104

    Re: The "source" command

    dude, why are you running csh scripts from bash? it doesnt work.
    you need to be using csh to run csh scripts.

Bookmarks

Posting Permissions

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