Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!wuarchive!rex!uflorida!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!corton!inria!cict!irit!pfeiffer From: pfeiffer@irit.fr (Daniel Pfeiffer) Newsgroups: comp.unix.shell Subject: shell compiler Message-ID: <1457@irit.irit.fr> Date: 9 Apr 91 16:30:55 GMT Sender: usenet@irit.fr Organization: Instituto de Reser^cado pri Informadiko de Tuluzo (IRIT) Universitato Paul Sabatier Lines: 28 Originator: pfeiffer@penelope 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 -- Tolosa (Toulouse), Midi-Pyrenees, Europe -- "Beware - polyglot esperantist" -- N _---_ / \ NEWS, it goes around the world. W (-------) E (sorry, my bitmap doesn't have a world-class resolution) \_ _/ --- S