in reply to invoking a cshell using system comand

Why do you think sh would call the csh? AFAIK sh is either a bourne shell (i.e. the mother of csh,ksh...) or an alias to bash, neither has a setenv command. You could use 'csh' to invoke the cshell or use a shebang line in your script (#!/usr/bin/csh as first line) and just call the script (without any sh or csh before it)
  • Comment on Re: invoking a cshell using system comand

Replies are listed 'Best First'.
Re^2: invoking a cshell using system comand
by nibalan (Initiate) on Jul 14, 2011 at 14:44 UTC
    Thanks a ton. I am new to shell scripting and I thought executing a shell script is by giving sh <script name>. Thanks for your reply