HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   11 line Bash_profile has no end? (http://www.howtoforge.com/forums/showthread.php?t=55064)

labrat 22nd November 2011 21:38

11 line Bash_profile has no end?
 
Hi all,

I'm just trying to add some env variables to my .bash_profile in order to run Madagascar through a Cygwin interface. I keep getting an "unexpected end of file" error, but for the life of me I cannot figure out the open loop or other syntax issue.

I'm sure it's something simple (see below), can anyone point out my error?

Code:

# base-files version 4.0-6
# ~/.bash_profile: executed by bash(1) for login shells.
#
if [ -f "${HOME}/.bashrc" ] ; then
  source "${HOME}/.bashrc"
fi
export RSFROOT=/usr/local/rsf
if [ -n "$PYTHONPATH" ]; then
  export PYTHONPATH=${PYTHONPATH}:$RSFROOT/lib
else
  export PYTHONPATH=$RSFROOT/lib
fi
export PATH=$PATH:$RSFROOT/bin
export DATAPATH=/var/tmp/

Thanks.
-lr

nbhadauria 23rd November 2011 01:58

file is ok ..

what about .bashrc ?


All times are GMT +2. The time now is 12:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.