From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7912 invoked from network); 27 Jul 1998 11:17:59 -0000 Received: from postoffice.telstra.net (139.130.4.7) by ns1.primenet.com.au with SMTP; 27 Jul 1998 11:17:59 -0000 Received: from math.gatech.edu (list@math.gatech.edu [130.207.146.50]) by postoffice.telstra.net (8.8.8/8.8.8) with ESMTP id SAA20359 for ; Mon, 27 Jul 1998 18:42:57 +1000 (EST) (envelope-from zsh-workers-request@math.gatech.edu) Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id GAA24256; Mon, 27 Jul 1998 06:05:28 -0400 (EDT) Resent-Date: Mon, 27 Jul 1998 06:05:28 -0400 (EDT) Date: Mon, 27 Jul 1998 20:07:23 +1000 (EST) From: Mark Hessling Subject: Extending zsh capabilities In-reply-to: <199807270524.BAA22704@math.gatech.edu> To: zsh-workers@math.gatech.edu Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"E42GL2.0.uw5.e35lr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4252 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hi Guys, I have been using zsh for several years now and have had no complaints! What I want to do now is add optional support for Rexx programs into a shell, and figured that zsh would be the shell to use. Firstly, would there be any objections to me adding this support and getting it into the "official" distribution ? Secondly, what assistance might I be able to get to point me in the right direction ? I originally tried adding this support to bash, but couldn't get it to work; probably because I didn't know enough of the internals of bash to know where the right place was to hook the Rexx support into. I've had a look at Zsh modules in 3.1.3, but don't think that this mechanism will work. Maybe it will, but that's where I need some knowledgeble advice. Before I go too much further, I'll explain what I want to do and someone hopefully can provide some pointers. All Rexx program begin with /* in the first two characters of the first line of an executable file (much like #!). When zsh comes across a Rexx program, I want to execute this program within the shell, but unlike #! programs, execute within the current process. So I can't use the #! hook. Executing a Rexx program within a current process is straighforward, I need to call the API function RexxStart() with the filename as one of the arguments. The interface is simple; its knowing where to hook it into zsh that is my biggest problem. Any comments, suggestions or pointers greatly appreciated. Cheers, Mark ------------------------------------------------------------------------ Mark Hessling Email: M.Hessling@qut.edu.au PO Box 203 http://www.lightlink.com/hessling/ Bellara AUTHOR of | MAINTAINER of QLD 4507 THE | PDCurses Australia Rexx/SQL | Regina Member of RexxLA: http://www.rexxla.org/ ------------------------------------------------------------------------