It is currently Tue, 07 Dec 2021 02:55:21 GMT



 
Author Message
 Convert ksh to csh
Does anyone know of a utility I can use to convert ksh scripts to csh? Any
help would be much appreciated.

Thanks
    John



 Sun, 07 Jul 2002 03:00:00 GMT   
 Convert ksh to csh
In article <Bpph4.5336$S64.147...@nnrp1.uunet.ca>,

Let me be the first:

HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA

--
Dan Mercer
damer...@uswest.net

Opinions expressed herein are my own and may not represent those of my employer.



 Sun, 07 Jul 2002 03:00:00 GMT   
 Convert ksh to csh

Thought I was the only one hating csh-scripts;
But Dan, don't be too hard: some poor people have to use csh (company
standards etc etc)



 Sun, 07 Jul 2002 03:00:00 GMT   
 Convert ksh to csh

Poor deluded man....

I've seen programs/scripts to translate DOS batch into csh, JCL
into csh, even perl to csh, but _ksh_ into csh?!  I've even myself
spent 1000+ hours writing a non-trivial parser to convert a csh
script to ksh.

Okay, but before I give a solution to you, I must demand that you first
read:

http://www.infocom.cqu.edu.au/Study/Units/85321_Systems_Administratio...

Okay, now that you've done that, the URL of a script to rewrite
_sh_ to csh is reproduced below; the extra functionality of ksh
may be hand recoded.

God help you.

http://www.hamiltonlabs.com/userguid/samples/sh_2_csh.htm

-Brian



 Tue, 09 Jul 2002 03:00:00 GMT   
 Convert ksh to csh

How insane!  ("I'd like you to play a piano concerto during my
concert, but first I need to cut off three fingers from each of
your hands...")

                --Ken Pizzini



 Tue, 09 Jul 2002 03:00:00 GMT   
 Convert ksh to csh

Yes, you'll find a set of sed scripts described at
http://www.hamiltonlabs.com/userguid/sh_2_csh.htm that will do pretty much
what you're looking for.  The complete set is included in the samples
directory of the demo (and product) version of my Hamilton C shell for NT or
Win9x, which you can download from http://www.hamiltonlabs.com/demopage.htm.

The big caveat I need to bring to your attention is that these scripts were
written to be used with the my sed and my C shell.  My sed is somewhat more
forgiving of things like spacing between commands, etc.  And my C shell adds
things like procedures that you will need if your ksh scripts use them.  So
you may need to tweak these scripts for your own system.

Also, since this was done with sed scripts, there's no way to promise the
conversion will be perfect.  Think of it as taking care of most all of the
grunt work.  That said, when some folks at DEC converted some 50KLOC of
scripts a while back, they told me they found it got about 90% of the job
done fully automatically.

If you need any help with these scripts, let me know.  I am the author and
will try to go whatever I can.
--

Regards,
Nicki Hamilton

Nicole Ashley Hamilton    KD1UJ    hamil...@hamiltonlabs.com
http://www.hamiltonlabs.com   Phone 781-487-0008   FAX 781-487-0009
Hamilton Laboratories, 45 Kings Way, Unit 14, Waltham, MA  02451-9039, USA



 Thu, 11 Jul 2002 03:00:00 GMT   
 Convert ksh to csh

Ouch!  I should know better than to type a URL -- even one of my own! --
rather than paste it from my browser.  Here's the correct address:

http://www.hamiltonlabs.com/userguid/samples/sh_2_csh.htm

Apologies to anyone who tried to follow that incorrect link and wondered
what the heck was going on.
--

Regards,
Nicki Hamilton

Nicole Ashley Hamilton    KD1UJ    hamil...@hamiltonlabs.com
http://www.hamiltonlabs.com   Phone 781-487-0008   FAX 781-487-0009
Hamilton Laboratories, 45 Kings Way, Unit 14, Waltham, MA  02451-9039, USA



 Fri, 12 Jul 2002 03:00:00 GMT   
 
   [ 7 post ] 

Similar Threads

1. ksh to csh and/or csh to ksh

2. converting from csh to ksh

3. help converting csh script to ksh?

4. csh & ksh varible convert

5. converting csh script to ksh

6. Converting csh aliases to ksh

7. Converting a csh script to ksh??

8. Converting from csh to ksh (and back again)

9. Convert csh to ksh?

10. Converting ksh scripts to csh scripts


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software