Geeks Talk

Prepare for your Next Interview




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 FAQ Members List 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 5 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


Similar Threads

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


All times are GMT -4. The time now is 05:10 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved