zsh-workers
 help / color / mirror / code / Atom feed
* Function output re-direction
@ 1996-08-02 18:42 Vinnie Shelton
  1996-08-03  2:39 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Vinnie Shelton @ 1996-08-02 18:42 UTC (permalink / raw)
  To: zsh-workers

I've stumbled across a rather bad bug in pre5.  I haven't applied any of the 
patches yet, so if this has already been fixed, feel free to ignore this 
message.  When I pipe input to a shell function and re-direct the output, 
stdout of the shell is re-directed as well:

spacely% zsh -f
spacely% echo $ZSH_VERSION
3.0-pre5
spacely% function x {
> echo x
> }
spacely% x
x                                       # OK so far
spacely% ls | x >/dev/null
spacely% ls                             # Output is gone!
spacely% exec >/dev/tty                 # got it back

This is on Solaris 2.5, built with the Sparcworks 4.1 compiler.

--vin


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

end of thread, other threads:[~1996-08-03  2:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-02 18:42 Function output re-direction Vinnie Shelton
1996-08-03  2:39 ` Zoltan Hidvegi

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