Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, iphone help, ipod help, AdSense, MySpace, Sony PSP help, Mp3 players, Windows XP, Windows Vista, Linux, SEO, Mac OS X, Facebook, Twitter and LinkedIn.

Changes in the login shell from Jaguar to Panther

A reader from Austria writes:
As I'm now working through your book Learning Unix for Mac OS X Jaguar, I can't get the commands "alias" and "grep" to work. Has been there a change in the command definition from Jaguar to Panther?

Dave's Answer: The default command shell did change between Jaguar and Panther (that is, between Mac OS X 10.2 and 10.3): in 10.2 the default shell was /bin/tcsh and in 10.3 the default shell is /bin/bash. This means that the format of an alias has changed, among other things. I do have a Panther edition of the book, but in a nutshell aliases should look like this:
alias ls='ls -F'
In terms of grep not working, that shouldn't be an issue. Is it in your PATH? That is, if you type:
which grep
Does it find the command?

One of the more controversial changes in the Jaguar to Panther update was this transition from tcsh to bash, but I have to say that I'm a big fan of the Bash shell, so for me, it was a good transition. Remember also that if you want to stick with the tcsh shell, you can simply change you default shell setting in the Terminal.app application. Go to Terminal -> Preferences and specify a different shell with "Execute this command (specify complete path)" by entering /bin/tcsh and ensuring that the second option is selected, not the default.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments
Rather amazingly, there are no comments on this article yet.


I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Uniblue: Free Virus Scan


Join Me At:
Aloha Social Media Summit, Oct 2008


Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Member of the B5Media Network

Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]