Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Difference in UNIX Shell

This is a discussion on Difference in UNIX Shell within the Unix/Linux forums, part of the Operating Systems category; A brief idea about the distinction or differences between the UNIX shells sh and csh is needed. Can someone throw highlight on this....

Go Back   Geeks Talk > Operating Systems > Unix/Linux
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 07-20-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 77
Thanks: 0
Thanked 5 Times in 3 Posts
scott is on a distinguished road
Difference in UNIX Shell

A brief idea about the distinction or differences between the UNIX shells sh and csh is needed. Can someone throw highlight on this.
Reply With Quote
The Following User Says Thank You to scott For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-23-2006
Expert Member
 
Join Date: May 2006
Location: New York, USA
Posts: 118
Thanks: 0
Thanked 6 Times in 4 Posts
RyanJames is on a distinguished road
Re: Difference in UNIX Shell

Some of the differences between sh and csh are:
The default prompt of sh is $ and that of csh is %
In sh $HOME represents home directory while in csh $home represents home directory
End of loop statement in sh is done while that of csh is end
Reply With Quote
  #3 (permalink)  
Old 07-23-2006
Contributing Member
 
Join Date: May 2006
Posts: 66
Thanks: 1
Thanked 6 Times in 4 Posts
janelyn is on a distinguished road
Re: Difference in UNIX Shell

To add to this discussion some more differences between sh and csh are:
End of if statement is denoted as fi is sh while it is represented as endif in csh
To print the working directory in sh the command used is pwd while in csh the command used is dirs
Exit status is represented as $?. In sh while it is represented as $status in csh
Hope that there are some differences and let us wait to get to know all that in this discussion.
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Popular Shell in Linux norman Unix/Linux 1 09-25-2007 08:25 AM
Unix ftp timmy Unix/Linux 1 07-13-2006 10:57 PM
Is there any difference between inFile and getline norman C and C++ 1 07-12-2006 05:37 PM
Difference in these UNIX commands RyanJames Unix/Linux 4 07-12-2006 04:00 PM
Difference between stat, fstat, lstat fred C and C++ 2 06-29-2006 09:02 PM


All times are GMT -4. The time now is 08:00 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved