From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id VAA17344 for ; Thu, 8 Jun 1995 21:22:23 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA26052 (5.65c/Gatech-10.0-IDA for ); Thu, 8 Jun 1995 07:19:38 -0400 Received: by math (5.x/SMI-SVR4) id AA11782; Thu, 8 Jun 1995 07:17:00 -0400 Resent-Date: Thu, 8 Jun 1995 12:17:17 +0100 Old-Return-Path: From: Anthony Iano-Fletcher Date: Thu, 8 Jun 1995 12:17:17 +0100 Message-Id: <199506081117.MAA05900@cider.maths.nott.ac.uk> To: zsh-workers@math.gatech.edu Subject: interact Resent-Message-Id: <"LF1t01.0.0u2.hmjrl"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/87 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Can we make a zsh script define some functions, some varables, etc.. and then give control over to the user as a usual interactive shell (except with those functions, etc just defined)? This is a bit like the interact command in the expect pacakge. At the moment I do this by setting the ZDOTDIR varaible to a directory containing the required definitions in the .zshrc file and then run zsh... ie. ---------------------------------- #! /bin/sh ZDOTDIR=/what/ever/path/the/zshrc/is/in export ZDOTDIR # most of the work is done in the .zshrc. # now interact with the user.... exec zsh ------------------------------- But this is ungraceful and I'd like to do this 'properly'. If this can't be done is there support enough for me to attempt to add an 'interact' keyword and associated code. Thanks, Anthony.