Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [patch] interactive source
- X-seq: zsh-workers 23544
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: [patch] interactive source
- Date: Mon, 11 Jun 2007 11:33:59 +0100
- In-reply-to: <20070604020217.GA96032@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <20070604020217.GA96032@xxxxxxxxxxxxxxxxxxxx>
On Sun, 3 Jun 2007 19:02:17 -0700
Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> >8------------------------------ . [-i] file [arg ...]
> Reads file as input to rc and executes its contents.
> With a -i flag, input is interactive. Thus from within a shell
> script,
>
> . -i /dev/tty
>
> does the ``right thing''.
> ----------------------------8< cut here
I tried this. While it's potentially useful to allow users to execute code
like this, it probably needs to use ZLE, which is more work.
The option handling needs to be done in the standard way, but that's easy
to fix.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author