Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
fc (history) requires zsh is interactive? Why can't interactive toggled?
- X-seq: zsh-workers 25705
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: fc (history) requires zsh is interactive? Why can't interactive toggled?
- Date: Sun, 21 Sep 2008 20:37:13 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=MrPMbZK6TaShhU5KSyvrnrTHzqdFaoCe7N8ukL44BoY=; b=dQuhhtj0NZ0w+ISGmsgfY9BCl8ffBO5B1FTYW0pGugyFkxSf9UB41G5bfrl/aPV3Sa DCfQc0PF9s/c3I9jF1o+lBEyBEVUP+YUmhCrTljbbnzh203HMqzkEQnpDR+K4MLaN+8Z eTLwpCpVwWvKXtjXHOmcXuxCWIErA7qtu1mc0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=oibWe2eBCrscE4Qbt08wk+Xu0zWTGPUuIyR8OHeNHLpfmHuJnoRyF5crO2qdpftrgE cWj7pCLlOCiRkZi5e2cN46FFlyikIqzg0NIcSDlGkhUffpJTQwsRmvHi9/4y6sRGcRyl vszJw/P4bJgzxhQEyb0kPZmBn6panmCqFJdJc=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
When I run fc -l (history) from a zsh script that isn't interactive I get the message
not interactive shell
Why is it that fc -l needs an interactive shell? One can put entries in the history and one can use vared to cycle through them, so what is it about an interactive shell that is important here?
Related to this, why can't an interactive shell be toggled? Suppose I run a non-interactive program and later want to attach to it say for debugging. At that point, I attach interactive tty and it becomes interactive. So what are the issues involved in turning a non-interactive program (from zsh's definition) to an interactive one?
Thanks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author