shell compiler
    Daniel Pfeiffer 
    pfeiffer at irit.fr
       
    Wed Apr 10 02:30:55 AEST 1991
    
    
  
Is there a compiler for Bourne shell or any other shell?  If not, is
anybody working on this?
Such a beast should draw frequent yet simple commands such as test,
cat, fgrep etc. into the C code (presumably) generated.  If there are
no traps, the last command should just be exec-ed w/o forking while
the others should have a hard wired fork/exec/wait.  When variable
substitutions are necessary they should have strcat or other calls in
place, and internal (i.e. assigned and not exported) variables should
just be char *.
Of course, if it's called upon to compile something like eval $1 `$2`
I suppose things get pretty hopeless.
--
-- Daniel Pfeiffer				<pfeiffer at cix.cict.fr>
-- Tolosa (Toulouse), Midi-Pyrenees, Europe	<pfeiffer at irit.fr>
-- "Beware - polyglot esperantist"		<pfeiffer at frcict81.bitnet>
--
      N
    _---_
   /	 \	NEWS, it goes around the world.
W (-------) E	(sorry, my bitmap doesn't have a world-class resolution)
   \_	_/
     ---
      S
    
    
More information about the Comp.unix.shell
mailing list