Mail Archives: cygwin/2002/10/14/22:29:46
On Mon, Oct 14, 2002 at 04:50:58PM -0400, Christopher Faylor wrote:
>On Mon, Oct 14, 2002 at 01:30:19PM -0700, Joshua Daniel Franklin wrote:
>>>* Jeff Johnston:
>>>>>"set | more" only the first page is shown, it does not display the
>>>>>"More" prompt, and the bash prompt appears at the bottom.
>>>
>>>>Try 1.3.13-2 if you haven't already.
>>>
>>>I'm used 13-2 and I can confirm Jeff's report. More seems to have
>>>broken.
>>
>>I ported 'more' mainly for people that have never heard of 'less' or
>>people with extremely small disk space looking to cut corners. I'll
>>take a look as soon as I can, but *please* anyone who can use 'less',
>>do so.
>>
>>BTW, does anyone have any additional details about the failure?
>
>I do. I managed to duplicate the problem by trying to run it on NT 4.0.
>The problem is that more assumes that it can read characters from fd 2
>which seems a remarkably iffy assumption. It uses read(2, ...) to
>characters from the 'tty'.
>
>1.3.13 added code to invalidate reading on file descriptors that are
>open only for writing. Cygwin had been opening all of the standard
>descriptors "appropriately" so that fd 0 was opened only for reading, fd
>1 was opened for writing, ditto fd 2.
>
>So, I've changed the code in cygwin so that it opens all of the standard
>file descriptors in read/write mode initially. This seems to mimic linux.
>
>A more, IMO, robust change for more would be to open /dev/tty for reading
>and use that for character input.
The newest snapshot should fix this "problem".
cgf
(who wonders why he even bothers to release snapshots since no one actually
tries them)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -