ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/04/23/04:05:23

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Mon, 23 Apr 2001 12:03:48 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: egor duda <cygwin-apps AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <103159547136.20010423120348@logos-m.ru>
To: Christopher Faylor <cygwin-apps AT cygwin DOT com>
Subject: Re: ash stdin mode is set to O_TEXT
In-reply-To: <20010421131957.B4033@redhat.com>
References: <11216876326 DOT 20010421202556 AT logos-m DOT ru>
<20010421131957 DOT B4033 AT redhat DOT com>
Mime-Version: 1.0

Hi!

Saturday, 21 April, 2001 Christopher Faylor cgf AT redhat DOT 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 AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019