Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Superfluous CRs trouble completion routines in Cygwin
- X-seq: zsh-workers 21914
- From: "Peter A. Castro" <doctor@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: Re: Superfluous CRs trouble completion routines in Cygwin
- Date: Sun, 23 Oct 2005 21:34:00 -0700 (PDT)
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1051023191106.ZM14745@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <87irvzys44.fsf@xxxxxxxxxxxxxxxx> <1051015180240.ZM22900@xxxxxxxxxxxxxxxxxxxxxxx> <1051016002252.ZM23495@xxxxxxxxxxxxxxxxxxxxxxx> <87y84owe0f.fsf@xxxxxxxxxxxxxxxx> <1051020145129.ZM2623@xxxxxxxxxxxxxxxxxxxxxxx> <87d5lzw13l.fsf@xxxxxxxxxxxxxxxx> <1051021154525.ZM7511@xxxxxxxxxxxxxxxxxxxxxxx> <EXCHANGE03cOpnTvjsE000079cb@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.60.0510231021530.5875@xxxxxxxxxxxxxxxxxxxx> <1051023191106.ZM14745@xxxxxxxxxxxxxxxxxxxxxxx>
On Sun, 23 Oct 2005, Bart Schaefer wrote:
On Oct 23, 10:33am, Peter A. Castro wrote:
}
} Since we are talking about console input, though, there may be a tty
} setting to control weither CRs are passed to the input stream. I'll see
} if I can investigate this.
I'm not all that familiar with how Cygwin simulates UNIX pipelines. We
are talking about command output piped to the "read" builtin -- is that
the same as console input?
Pipes in Cygwin are a, somewhat, strange beast, because the underlying
mechanism is Windows pipes (the working of which is a topic for a
different discussion).
Pipes can be effected depending on the CYGWIN env var.
If you set: CYGWIN=binmode
Then everything is sent through the pipe (this is the default).
If, however, you set: CYGWIN=nobinmode
Then CRLF will be translated to LF.
Unfortunately, this is a global and would effect every pipe opened
(though it can be overridden, but would mean special case shell code
everywhere).
In any case, stripping CRs from the i/o stream would only mask the
problem. It'd be at least as helpful to know why adding a CR to the
IFS value causes a segmentation fault.
Agreed. I haven't been able to repo this scenario (yet). If whoever can
repo it, could attach a debugger to the shell and the cause it to fault,
they should be able to catch where it's faulting (though finding the
correct thread might be a little tricky).
--
Peter A. Castro <doctor@xxxxxxxxxxxx> or <Peter.Castro@xxxxxxxxxx>
"Cats are just autistic Dogs" -- Dr. Tony Attwood
Messages sorted by:
Reverse Date,
Date,
Thread,
Author