delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/07/05:00:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: jojelino <jojelino AT gmail DOT com>
Subject: Re: [ANNOUNCEMENT] Updated: cygwin-1.7.10-1
Date: Tue, 07 Feb 2012 19:01:28 +0900
Lines: 59
Message-ID: <jgqsn0$mnl$1@dough.gmane.org>
References: <announce DOT 20120205162927 DOT GA5926 AT calimero DOT vinschen DOT de> <jgq9ja$t4f$1 AT dough DOT gmane DOT org> <4F30C98B DOT 1090405 AT dancol DOT org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:13.0a1) Gecko/20120206 Thunderbird/13.0a1
In-Reply-To: <4F30C98B.1090405@dancol.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

2012-02-07 PM 3:49, Daniel Colascione 쓴 글:
> On 2/6/12 8:35 PM, jojelino wrote:
>> 2012-02-06 AM 1:29, Corinna Vinschen 쓴 글:
>>> Hi Cygwin friends and users,
>>>
>>
>> C:\Documents and Settings\Administrator>base64 oso|base64 -d -
>> base64: write error: Bad file descriptor
>> base64: write error
>>
>> C:\Documents and Settings\Administrator>uname -a
>> CYGWIN_NT-5.2 1.7.10s(0.259/5/3) 20120202 16:59:00 i686 Cygwin
>>
>> please check this problem.
>
> Worksforme after creating a file called "oso".

  (And if I don't have
> such a file, the command fails in the expected way.)
>
sorry for confusion

rem make empty file
C:\>touch boa

C:\>base64 boa|base64 -d -
rem make non empty file
C:\>echo blahblah >oso

C:\>base64 boa|base64 -d -

C:\>base64 boa|base64 -d -

C:\>base64 oso|base64 -d -
blahblah

C:\>base64 oso|base64 -d -
base64: write error: Bad file descriptor
base64: write error

C:\>base64 oso|base64 -d -
base64: write error: Bad file descriptor
base64: write error

C:\>base64 oso|base64 -d -
base64: write error: Bad file descriptor
base64: write error

C:\>base64 oso|base64 -d -
base64: write error: Bad file descriptor
base64: write error

empty file always worked.
for non-empty file it does worked or not.
strace for base64 -d solved the write error. so i couldn't figure it out 
quite well.

-- 
Regards.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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