zsh-workers
 help / color / mirror / code / Atom feed
From: Bruce Stephens <bruce@cenderis.demon.co.uk>
To: Jeff Solomon <jsolomon@stanford.edu>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: Zsh and Perl?
Date: 04 Aug 1999 23:02:19 +0100	[thread overview]
Message-ID: <m37lnb8as4.fsf@cenderis.demon.co.uk> (raw)
In-Reply-To: Jeff Solomon's message of "Wed,  4 Aug 1999 11:13:27 -0700 (PDT)"

Jeff Solomon <jsolomon@stanford.edu> writes:

[...]

> So I'm asking the zsh developers about the best way to solve this
> problem. Basically I want to either embed perl into zsh or embed zsh
> into perl, but the key is that my perl commands have to share state
> from one instance of a perl interpreter.

Why do you need Perl?  What do you need to do that can't be done in
zsh?  (I'm not doubting that there are things that Perl can do that
zsh can't, but perhaps the things you want to be able to do would be
valuable and sensible to add to zsh.)

> Embed perl into zsh:
>     
>     Looking at the source, this looks like the most straightforward
>     thing to do. It seems easy to add a 'perl_eval' command that would 
>     evaluate a snippet of perl in a persistent interpreter. But I
>     would want to add command into the zsh enviroment from perl so I
>     can type:
> 
> 	my_command my_arg1 my_arg2
> 
>     instead of
> 
> 	perl_eval 'my_command my_arg1 my_arg2'
> 
>     which means you'd have to add support for calling back into zsh
>     from perl.

Yes, this sort of thing has been proposed before.  I'm not sure
whether there was ever actual code, but I don't think there's any
serious barrier to having a Perl module, dynamically loadable into
zsh.


  reply	other threads:[~1999-08-04 22:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-04 18:13 Jeff Solomon
1999-08-04 22:02 ` Bruce Stephens [this message]
1999-08-05  5:39 ` Bart Schaefer
1999-08-05  8:31 ` Peter Stephenson
1999-08-23 11:30 Mike Fletcher

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=m37lnb8as4.fsf@cenderis.demon.co.uk \
    --to=bruce@cenderis.demon.co.uk \
    --cc=jsolomon@stanford.edu \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).