From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21298 invoked from network); 25 Apr 2005 10:48:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Apr 2005 10:48:56 -0000 Received: (qmail 86260 invoked from network); 25 Apr 2005 10:48:50 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Apr 2005 10:48:50 -0000 Received: (qmail 8684 invoked by alias); 25 Apr 2005 10:48:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21185 Received: (qmail 8667 invoked from network); 25 Apr 2005 10:48:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Apr 2005 10:48:46 -0000 Received: (qmail 85948 invoked from network); 25 Apr 2005 10:48:46 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 25 Apr 2005 10:48:40 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212] helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.44) id 1DQ18m-0004Lw-KV; Mon, 25 Apr 2005 12:48:36 +0200 Date: Mon, 25 Apr 2005 12:49:50 +0200 From: DervishD To: frederik@ofb.net Cc: zsh-workers@sunsite.dk Subject: Re: zle separability Message-ID: <20050425104950.GA4108@DervishD> Mail-Followup-To: frederik@ofb.net, zsh-workers@sunsite.dk References: <20050424193737.GA27777@a5.repetae.net> <20050424230816.GA78@DervishD> <20050425075146.GC28168@a5.repetae.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050425075146.GC28168@a5.repetae.net> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Hi Frederik :) * Frederik Eaton dixit: > Thanks. I guess there's always writing a zsh script to do the > interfacing, but that wouldn't be ideal. In fact I've tried to use zpty for building frontends to 'dumb' programs that doesn't support history or line editing. I tried first with a simple ftp client, since zftp has some problems for me. The result is incomplete because I haven't had the time to do it. > (... but, by the way, it would still be nice if such uses for zsh were > better supported, with for instance support for reading an arbitrary > config file or executing an arbitrary fragment before opening an > interactive shell, or for a function which can be defined to handle > all interactive commands) You already can open an arbitrary config file with zsh using /etc/zshrc and $ZDOTDIR/.zshrc and a bit of magic (like an environment variable). If you want, you can use '-c' too or '-s' to read commands from stdin or from a file. Be careful about closing stdin too soon or end your script when you shouldn't ;)) If what you want is to run 'zsh --config=configfile', ok, there's no support for that. For the rest I don't understand clearly what do you want. If you could give me some use cases I can try to tell you ways of achieving what you need. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.dervishd.net & http://www.pleyades.net/ It's my PC and I'll cry if I want to...