delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/24/13:07:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <039b01c23334$6471c9d0$0d32a8c0@ids.de>
From: "Bernd Walther" <Bernd DOT Walther AT ids DOT de>
To: <cygwin AT cygwin DOT com>
Subject: cygwin 1.3.12 problem with using pipes
Date: Wed, 24 Jul 2002 19:06:00 +0200
Organization: SWP
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Hello,

i see on http://sources.redhat.com/ml/cygwin-announce/2002-07/msg00002.html
    ...
    - Fix binmode/textmode problems with ssh and other programs which use
pipes. (Christopher Faylor)
    ...

but there are some more problems, please look to my simple bash-script
        uname -a
        echo abc >| tmp1
        echo abc >> tmp1
        od -t x1 tmp1
                   gawk '{print length,$0}' tmp1         | od -t x1
        cat tmp1 | gawk '{print length,$0}'              | od -t x1
                   gawk '{print length,$0}' tmp1 >| tmp2 ; od -t x1 tmp2
        cat tmp1 | gawk '{print length,$0}'      >| tmp2 ; od -t x1 tmp2

i get a output:
        CYGWIN_NT-4.0 PCWA 1.3.12(0.54/3/2) 2002-07-06 02:16 i586 unknown
        0000000 61 62 63 0d 0a 61 62 63 0d 0a
        0000012
        0000000 33 20 61 62 63 0a 33 20 61 62 63 0a
        0000014
        0000000 34 20 61 62 63 0d 0a 34 20 61 62 63 0d 0a
        0000016
        0000000 33 20 61 62 63 0d 0a 33 20 61 62 63 0d 0a
        0000016
        0000000 34 20 61 62 63 0d 0a 34 20 61 62 63 0d 0a
        0000016

but because i have installed cygwin with check box "DOS" at "Default Text
File Type"
i was expecting an output like
        0000000 61 62 63 0d 0a 61 62 63 0d 0a
        0000012
        0000000 33 20 61 62 63 0d 0a 33 20 61 62 63 0d 0a
        0000016
        0000000 33 20 61 62 63 0d 0a 33 20 61 62 63 0d 0a
        0000016
        0000000 33 20 61 62 63 0d 0a 33 20 61 62 63 0d 0a
        0000016
        0000000 33 20 61 62 63 0d 0a 33 20 61 62 63 0d 0a
        0000016

Some problem (with some differences), if i use perl instead of gawk

So, it can't use my finished bash/gawk/perl-scripts
    when they use input pipes
    when DOS File Type
Can anyone help me.

Regards
Bernd Walther, Germany



--
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 -


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