zsh-workers
 help / color / mirror / code / Atom feed
From: DervishD <zsh@dervishd.net>
To: frederik@ofb.net
Cc: zsh-workers@sunsite.dk
Subject: Re: zle separability
Date: Mon, 25 Apr 2005 12:49:50 +0200	[thread overview]
Message-ID: <20050425104950.GA4108@DervishD> (raw)
In-Reply-To: <20050425075146.GC28168@a5.repetae.net>

    Hi Frederik :)

 * Frederik Eaton <frederik@a5.repetae.net> 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...


  reply	other threads:[~2005-04-25 10:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-24 19:37 Frederik Eaton
2005-04-24 23:08 ` DervishD
2005-04-25  7:51   ` Frederik Eaton
2005-04-25 10:49     ` DervishD [this message]
2005-04-25 11:04       ` Frederik Eaton
2005-04-25 11:39         ` DervishD
2005-04-25 11:58           ` Frederik Eaton
2005-04-25 16:02             ` DervishD
2005-04-28  5:45               ` Frederik Eaton
2005-04-28  7:45                 ` DervishD
2005-04-25 16:09             ` Bart Schaefer
2005-04-28  5:59               ` Frederik Eaton
2005-04-28  8:17                 ` Bart Schaefer
2005-04-28 10:04                   ` Peter Stephenson
2005-04-28 14:55                     ` Bart Schaefer

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=20050425104950.GA4108@DervishD \
    --to=zsh@dervishd.net \
    --cc=frederik@ofb.net \
    --cc=zsh-workers@sunsite.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).