zsh-workers
 help / color / mirror / code / Atom feed
* prompt from noninteractive shell?
@ 2002-03-05 10:34 Derek Peschel
  2002-03-05 10:42 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Derek Peschel @ 2002-03-05 10:34 UTC (permalink / raw)
  To: zsh-workers

I whipped up some test cases of the history mechanism, specifically
of the way the event numbers change.  (The option that prevents
"history" commands from being stored in the list does unintuitive things
to the event numbers, and I wanted to investigate that further.)

Is there a way to get a shell to source a bunch of commands and still
print prompts after each one?  It would be much easier than "cut, paste
into an interactive shell, note the prompts".

(Prompts are a good testing mechanism because you can easily find out
lots of information.)

-- Derek


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

* Re: prompt from noninteractive shell?
  2002-03-05 10:34 prompt from noninteractive shell? Derek Peschel
@ 2002-03-05 10:42 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2002-03-05 10:42 UTC (permalink / raw)
  To: Zsh hackers list

Derek Peschel wrote:
> Is there a way to get a shell to source a bunch of commands and still
> print prompts after each one?  It would be much easier than "cut, paste
> into an interactive shell, note the prompts".

If you turn on the xtrace option, you can put any information you want
into $PS4.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


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

end of thread, other threads:[~2002-03-05 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-05 10:34 prompt from noninteractive shell? Derek Peschel
2002-03-05 10:42 ` Peter Stephenson

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