Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!unicads!tom From: tom@unicads.UUCP (Tom Gerardy) Newsgroups: comp.sys.mac.programmer Subject: MPW cmd language Keywords: MPW Message-ID: <495@unicads.UUCP> Date: 21 Jun 89 19:48:46 GMT Lines: 31 I am trying to put up ctags and a vi/tags like facility in MPW (actually it is already working.) The output of the tag tool is a string of MPW commands to open the file and find the search string. Is there a way to feed this directly to the shell? I tried using command substitution on the whole line, but MPW seems to have already decided that there is only one command and trys to open all the other words on the line! Currently I am having to write the output to a file and execute it as a script. This seems to slow things down considerably since both "open" and "find" are builtins. I _have_ RTFM a considerable amount although I only upgraded to 3.0 very recently so I might concievably have missed _something_ :-) The short part of the manual that describes what order the shell expands things in is slightly ambiguous. It describes tokenization as happening after command substitution with a note about ';' and such characters at that point. However, it seems as if the ';'s have already been processed before command substitutuion. Are they really snarfed as part of the control structures step? Any help or suggestions would be appreciated greatly. BTW I will try to figure out how to ship this stuff to mac sources/binaries after I've played just a little more to get the bugs out... I assume there would be some interest? -tom- -- - Tom Gerardy UUCP: ...!sun!sunpeaks!unicads!tom UNICAD, Inc. or: ...!ncar!{sunpeaks|boulder}!unicads!tom 1695 38th Street Boulder, Colo. 80301 (303) 443-6961