zsh-workers
 help / color / mirror / code / Atom feed
From: Anthony Iano-Fletcher <Anthony.Iano-Fletcher@maths.nott.ac.uk>
To: zsh-workers@math.gatech.edu
Subject: interact
Date: Thu, 8 Jun 1995 12:17:17 +0100	[thread overview]
Message-ID: <199506081117.MAA05900@cider.maths.nott.ac.uk> (raw)


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.


             reply	other threads:[~1995-06-08 11:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-08 11:17 Anthony Iano-Fletcher [this message]
1995-06-15 17:17 interact Anthony Iano-Fletcher
1995-06-16  9:35 ` interact P.Stephenson
1995-06-16 12:32 interact Anthony Iano-Fletcher
1995-06-16 14:49 ` interact P.Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199506081117.MAA05900@cider.maths.nott.ac.uk \
    --to=anthony.iano-fletcher@maths.nott.ac.uk \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).