|
|
bash
Looks like you haven't got a working PATH. Type 'echo $PATH' in tcsh and bash. The PATH tells the shell where it should look for executables and in what order.
bash
in your home dir (~) create a file called .profile (or vi it if there already is one) and add, somewhere:
RE: bash
Looks like it's working fine now. I wrote the following to ~/.profile
RE: bash
Yikes, sorry! Been in SunOS land for too long. /usr/ucb is where all the good stuff like the old ps lives.
RE: bash
that didn't make sense, did it!?!?!
bash
Accually Apple did not distribute the bash shell because of confusion over the GPL. They were worried that if they distributed it ALL of OS X would then be covered by the GPL.
tcsh sucks
See title. Tcsh sucks. It takes the brain-dead csh and fixes a few things to make it work better for shell scripting, better redirection, etc. But bash is from the sh heritage, which is far more consistent from a programming perspective, and is the standard shell scripting language for most things Unix. If you don't like sh or bash, there's always zsh or ksh.
tcsh sucks
scripting language ?. You can write scripts in any language you want, what you use for a shell is another matter. If I want to write a script I use Perl. I wouldn't think of using tcsh or bash for scripting. If the script is trivial one or two liner then sh or csh will suffice, and if the script is more sophisticated then Perl is the answer.
tcsh/csh vs sh/zsh for scripting
There is a good article on why tcsh/csh is considered bad for scripting.
the many shells, pros & cons
Unix newbie here. Does anyone have a handy reference that outlines the differences between all these different shells? The pro's and cons? |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|