how to handle usig csh scripts from within bash/sh scripts?

how to handle usig csh scripts from within bash/sh scripts?

Post by Brian S Hile » Fri, 01 Mar 1996 04:00:00

: How do the experts deal with having a set of csh scripts made up of
: lots of setenv ... statements & the need to be able to utilize these
: scripts while in non-csh shells?  Is there a tool to convert these
: setenv statments to sh/bash syntax?  I wish that a sub process could
: modify its parent's env space - using #!/bin/csh at the start of the
: script would then make the answer trivial.  Please email any solutions

The perfect tool for you is: /usenet/comp.sources.unix/volume13/korner/*
It duplicates a csh environment into kornshell.

Also: it is possible for a child to modify it's parent's environment; I
do it all the time. Simply write out the variables ("set" command approp-
riately munged, or "setenv" command), etc, to a file, and "source" this
file back in the parent.

Also: there was a nawk script by Daniel Zepeda on Usenet a while ago
that did an acceptable job of turning "csh" source into "ksh" source.
I have a hardcopy that I would either need to type back in, or hopefully
an email address so that you could elicit him for it. Please email me
if you are interested in this.

[ followup cc'ed by email ]

   ,---.     ,---.     ,---.     ,---.     ,---.     ,---.     ,---.  
  /  _  \   /  _  \   /  _  \   /  _  \   /  _  \   /  _  \   /  _  \  

__,'   `.___,'   `.___,'   `.___,'   `.___,'   `.___,'   `.___,'   `.__


1. Execute a sh script under perl and sh: sh script; perl script?

I can execute the following perl scripts under either shell or Perl

        if 0;
[perl scripts ...]
sh script
perl script

How do I execute a sh script under either shell or Perl
simililar to what shown above?

Michael Wang    

2. iMac linuxPPC Graphics - Help Needed

3. Handling a pipe from within a -csh script

4. lldiv undefined?

5. How to execute csh script in sh script ?

6. Netscape Graphics: Poor Quality

7. need help converting sh scripts to csh scripts

8. Problems installing Slackware

9. sh script to csh script

10. How to port this sh script to csh script ?

11. Changing passwords from a sh scripts (or csh script)

12. csh commands within csh scripts

13. make sh-script compatible between SUN-sh and bash