delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/08/23:34:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:subject:content-type;
q=dns; s=default; b=sMOM5vWv1UMIqIBStXaEj6cY8QcfG2C5iGNPv06NqH1
MZLzvzU3yf8Nf81qhuTwLAzOl1oBImwVm0HQjg1eYJzswrlnRzqzpHYaGb9rN9cc
1P5AtvGmYqaj/La96njQvle9Kx6y5EfE9YJbvrDWVFrLKYH2QD7i4gZs3Ad/ectA
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:subject:content-type;
s=default; bh=y1T3kH/ZWCZrBCM2ic5dz0fNuqM=; b=RyFrVaN7oVDW5jM0R
shUl+pa+OtXRPHOzYjTsqH+ZFzuYfCN05n8yqajip3gdF7FZYzUkANB84QjU8bGm
yNHAeOyLhMshwhvMvRSAAb4jWiVUicv0cYcTm/e7OGXKPmRZpMFAPzy+jY52k6Iz
d3vFAAPVraLzN3V88D8EnKjjnY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:1c69fb81, H*M:1c69fb81, H*MI:c280, Ruby
X-HELO: mail-oi0-f67.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:subject:user-agent; bh=n/hxoBwkbM0v/FJUWS21Kbqh6hPME/L1/CURoA/SFsY=; b=eiI0mG0HGeIr7jmuaQf1dAtvXONo1ezgN/zWOLaUfOVZugUP5WK7iDr0pgOXMS3tPD zBSrxvKl2v6evsDIdtq+WJmd1jr3XqxzdKME5ohab+ByRa3XAsKIAbCUd7vPOUcOthY2 GzRPJfM/CwVEJ7H2srzfFLGLkNOGbHcx+6H0eBGMdL+pmzYXT9h7pd77XgkBOlsKUr2L 2B2cvaD1hJs6Vxkjy49b+OyJWc9ZJpqgufuSCkokXrOGpqLACUhvo/OJHAa0OWC9rlAc Su5BwT33Mqt86dlFMGCzRM+MMrCFZ4mWVS6I6mlWH3SD/HhGKZbD9etHJm9MzMUZu75L a03g==
Message-ID: <5b42d7c7.1c69fb81.25197.c280@mx.google.com>
Date: Sun, 08 Jul 2018 20:34:31 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Ruby returning invalid entry sizes
User-Agent: Tryst/2.7.0 (github.com/svnpenn/tryst)

If you run this command with Linux Ruby or RubyInstaller [1]:

    $ ruby -e 'p File.size(".")'
    65536

you correctly get the IO Blocks for the current directory. However not with
Cygwin Ruby:

    $ ruby -e 'p File.size(".")'
    0

[1] http://rubyinstaller.org


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