Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!hcobb From: hcobb@walt.cc.utexas.edu (Henry J. Cobb) Newsgroups: comp.sys.amiga Subject: ARexx "Shell" Script Keywords: ARexx csh Message-ID: <27018@ut-emx.UUCP> Date: 27 Mar 90 21:47:53 GMT Sender: news@ut-emx.UUCP Reply-To: hcobb@walt.cc.utexas.edu (Henry J. Cobb) Organization: The University of Texas at Austin Lines: 38 /* Shell.rexx Demo of the "captive shell" technique requires Csh 4.01a or later */ shell command "run shell -c rxrec CSH" call delay(500) a = "say hello" shell CSH do until upper(a) = "QUIT" interpret a parse pull a end shell rexx "shell CSH 'quit'" ---cut----line---- I had to do a lot of: alias CD cd To get this to work. (Why are the shell builtins cased, if the OS isn't ???) However the CSH port sticks around afterwards due to a bug in the shell, so this is really only a demo of what could be done. Hint, try stuff like: b = "ram:" cd b say b -- Henry J. Cobb hcobb@ccwf.cc.utexas.edu "I was not here; I did not say this."