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 21908
- From: "Peter A. Castro" <doctor@xxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: Re: Superfluous CRs trouble completion routines in Cygwin
- Date: Sun, 23 Oct 2005 10:33:04 -0700 (PDT)
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <EXCHANGE03cOpnTvjsE000079cb@xxxxxxxxxxxxxxxxxx>
- 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>
On Fri, 21 Oct 2005, Peter Stephenson wrote:
Bart Schaefer wrote:
?? I just don't see any reason why $'\r' would be magical.
It's a bit magical in Cygwin depending on whether you've told it to
translate ends of lines in the file system. No idea if that's
relevant or not.
For the Cygwin port, I'd updated Src/main.c to use a Cygwin specific
"feature" to force all read-only files opened by the shell to strip out
CRs. This was necessary for reading shell scripts which might have been
created with dos carriage-control.
Unfortinately, this only applies to read-only files (opened with
O_RDONLY), allowing for files opened for write to be influenced by the
filesystem settings. Since the console stream is r/w, the above
"feature" doesn't apply.
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.
pws
--
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