home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3136 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!uwm.edu!psuvax1!psuvm!brl102
  2. Newsgroups: comp.unix.shell
  3. Subject: process substitution in zsh
  4. Supersedes: <92207.163611BRL102@psuvm.psu.edu>
  5. Organization: Penn State University
  6. Date: Sat, 25 Jul 1992 23:18:52 EDT
  7. From: <BRL102@psuvm.psu.edu>
  8. Message-ID: <92207.231853BRL102@psuvm.psu.edu>
  9. Followup-To: poster
  10. Lines: 27
  11.  
  12. I've recently begun exploring zsh, and am having trouble with process substi-
  13. tution.  Consider the following minimalist example:
  14.  
  15.    echo foo > >(cat)
  16.  
  17. Near as I can tell, this should write "foo" to echo's stdout, which will be
  18. redirected into a named pipe.  Stdin for cat will also be redirected from that
  19. named pipe, so it should copy "foo" to its stout.  Since cat's stdout is not
  20. redirected, "foo" should be printed on the terminal.  Instead, "zsh: write
  21. error: broken pipe" results.
  22.  
  23. A few possibly related examples:
  24.  
  25.    cat > >(cat)         reads a single line from the terminal but does not echo
  26.    cat < <(cat)         terminates immediately without reading from terminal
  27.  
  28. I thought, from the documentation, that both of these should perform just like
  29. a single "cat", with a bit of variety as to which "cat" is reading from where.
  30. Who is confused:  me, zsh, or my Unix box?  Pertinent data:  I am version 1.0,
  31. zsh is version 2.2.0, and my box is running SunOS 4.1.1.
  32.  
  33. Any clues?  I'm directing all followups to me directly, as me UseNet access is
  34. a bit sporadic these days.  I promise to post a summary of all replies.
  35.  
  36.  
  37. Ben Liblit   -----   "Fais que tes reves soient plus longs que la nuit."
  38. liblit@cs.psu.edu   --   brl102@psuvm.psu.edu   --   brl102@psuvm.bitnet
  39.