From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list),
" " <arvidjaar@mail.ru>
Subject: Re: Fix for zpty under Cygwin
Date: Tue, 08 May 2001 11:23:50 +0100 [thread overview]
Message-ID: <Tc0a88d0153648fa610@mailsweeper01.cambridgesiliconradio.com> (raw)
In-Reply-To: Your message of "Mon, 07 May 2001 22:15:01 +0400." <E14wpXB-0008aM-00@f9.mail.ru>
Someone claiming to be Andrej wrote:
> So the fix under Cygwin is quite simple - just remove O_NOCTTY. Actually, I
> wonder what it does here at all - it is exactly the descriptor that *will* be
>
> Related problem is testing. Completion tests consistently failed; the reason
> was this line in comptest:
>
> zpty -b zsh "$comptest_zsh -f +Z"
>
> i.e. non-blocking mode. As a result the next read returned empty string and
> failed. I could not reproduce it in interactive shell, so I suspect some
> obscure scheduling issues here. Anyway, non-blocking mode looks wrong here to
>
> me. We cannot expect that the whole output will always be available when we
> try to read. In this case much more better would be read-with-timeout ... O.K
> .
> after 4.0.1 may be. With -b removed all completion tests passed under Cygwin.
I had problems with the tilde test (below, if it means anything --- part of
the problem is my /etc/zshenv which isn't as clean as usual on my PC), but
it seems clear that zpty is functioning OK, so I'm committing the two
changes (with the #ifdef __CYGWIN__ for now).
By the way, we probably need to be clearer about tests that might fail on a
network mount.
*** /tmp/zsh.ztst.out.334 Tue May 8 11:17:03 2001
--- /tmp/zsh.ztst.tout.334 Tue May 8 11:17:05 2001
***************
*** 1,7 ****
! line: {: ~user}{}
! line: {: ~user}{}
NO:{user1}
NO:{user2}
line: {: ~user1}{}
line: {: ~user2}{}
! line: {: ~user1}{}
--- 1,10 ----
! line: {: ~}{}
NO:{user1}
NO:{user2}
+ DESCRIPTION:{named directory}
+ NO:{c}
+ NO:{dev}
line: {: ~user1}{}
line: {: ~user2}{}
! line: {: ~c/}{}
! line: {: ~dev/}{}
Test ../../Test/Y01completion.ztst failed: output differs from expected as shown
above for:
comptesteval '_users () { compadd user1 user2 }'
comptest $': ~\t\t\t\t\t'
Was testing: tilde
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
next prev parent reply other threads:[~2001-05-08 10:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-07 18:15 áÎÄÒÅÊ âÏÒÚÅÎËÏ×
2001-05-07 19:47 ` Bart Schaefer
2001-05-08 4:08 ` Re[2]: " áÎÄÒÅÊ âÏÒÚÅÎËÏ×
2001-05-08 10:23 ` Peter Stephenson [this message]
2001-05-08 12:45 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Tc0a88d0153648fa610@mailsweeper01.cambridgesiliconradio.com \
--to=pws@csr.com \
--cc=arvidjaar@mail.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).