zsh-workers
 help / color / mirror / code / Atom feed
* fc (history) requires zsh is interactive? Why can't interactive toggled?
@ 2008-09-22  0:37 Rocky Bernstein
  2008-09-22 12:06 ` Peter Stephenson
  0 siblings, 1 reply; 7+ messages in thread
From: Rocky Bernstein @ 2008-09-22  0:37 UTC (permalink / raw)
  To: Zsh hackers list

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 714 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-23 18:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-22  0:37 fc (history) requires zsh is interactive? Why can't interactive toggled? Rocky Bernstein
2008-09-22 12:06 ` Peter Stephenson
2008-09-22 13:58   ` Rocky Bernstein
2008-09-22 14:25     ` Peter Stephenson
2008-09-23  3:31       ` Rocky Bernstein
2008-09-23  8:42         ` Peter Stephenson
2008-09-23 18:02           ` Rocky Bernstein

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).