Results 1 to 3 of 3

Thread: Difference in UNIX Shell

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    74

    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.


  2. #2
    Expert Member
    Join Date
    May 2006
    Answers
    114

    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


  3. #3
    Contributing Member
    Join Date
    May 2006
    Answers
    64

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact