Can run UNIX commands from Bash.

untz

Registered
Hello,

I am having trouble running UNIX commands (such as ls, env, etc.) from the bash shell....

I created a .bash_profile in ~/ and set a JAVA_HOME and CATALINA_HOME system user environment variables...

Afterwards, I closed the Terminal application, and re-ran it... I echoed $JAVA_HOME & $CATALINA_HOME and everything worked...

Now, what happened was that when I tried this:

$ echo $CATALINA_HOME/lib

it couldn't find it and now I can't run any of my commands! I am command-less on the command line!

If anyone can help, me... I would appreciate it... Also, I set this awesome font for my terminal shell, but can't seem to find out what it is (I tried look at preferences)...

Many, many thanks!
 
This is what happens when I launch the Terminal application:

Last login: Sun Oct 24 20:46:42 on ttyp1
Welcome to Darwin!
-bash: /Developer/jakarta-tomcat-5.0.28/lib: No such file or directory
Raven:~ untz$

I can run a single command from my $... Is there a way to reset it?
 
What happens if you rename your .bash_profile? If that fixes it, then there's your problem localized to one file at least.

You should still be able to run commands by giving the full path - so even if
mv .bash_profile somethingelse
doesn't work
/bin/mv .bash_profile somethingelse
should
 
Back
Top