Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88636
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
| Newsgroups | comp.lang.python |
| Subject | Re: Help with pipes, buffering and pseudoterminals |
| Date | Wed, 08 Apr 2015 12:23:24 +1200 |
| Lines | 15 |
| Message-ID | <cojanuFmscU1@mid.individual.net> (permalink) |
| References | <CAJGew6=g41cT5QXd51oaVVC5PWCnE5GWYzX5YaqDBwXb0kKUDw@mail.gmail.com> <20150407054803.GA80257@cskk.homeip.net> <mailman.85.1428403083.12925.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net dOEgdGTJU8FlIaBdFPP6IwiHYXbOV+tDG+kPjvrDNKUZ7OKedi |
| Cancel-Lock | sha1:b89S0d/5rYO6V4WVS1Ev1JXY85k= |
| User-Agent | Mozilla Thunderbird 1.0.5 (Macintosh/20050711) |
| X-Accept-Language | en-us, en |
| In-Reply-To | <mailman.85.1428403083.12925.python-list@python.org> |
| Xref | csiph.com comp.lang.python:88636 |
Show key headers only | View raw
Chris Angelico wrote: > Really? I can believe that stdout and stderr are initially duplicates, > but stdin as well? Isn't stdin opened for reading only, and > stdout/stderr for writing only? It depends entirely on how the process that forked your shell process set things up, but a quick experiment I just did in a MacOSX terminal window suggests that it's not really bothered about that distinction: sh-3.2$ echo foo >&0 foo -- Greg
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Help with pipes, buffering and pseudoterminals Chris Angelico <rosuav@gmail.com> - 2015-04-07 20:38 +1000 Re: Help with pipes, buffering and pseudoterminals Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-04-08 12:23 +1200
csiph-web