ash stdin mode is set to O_TEXT
egor duda
deo@logos-m.ru
Mon Apr 23 01:05:00 GMT 2001
Hi!
Saturday, 21 April, 2001 Christopher Faylor cgf@redhat.com wrote:
CF> On Sat, Apr 21, 2001 at 08:25:56PM +0400, egor duda wrote:
>>ash stdin mode is set to O_TEXT, so it's impossible to checkin/chechout
>>binary files from cvs when CVS_RSH is sh script.
>>
>>maybe O_TEXT should be set only in interactive mode? or shouldn't be
>>set at all?
CF> Corinna and I have discussed this in the past. The problem is that the
CF> 'read' command should always be text mode whether it is interactive or
CF> not.
perhaps. but wouldn't be this
/* strip trailing '\r' of input, if any */
if (*input_buf)
{
p = input_buf + strlen (input_buf) - 1;
if (*p == '\r') *p = '\0';
}
enough in case of 'read'?
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
More information about the Cygwin-apps
mailing list