delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/10/16:10:36

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=cegiShvVQrkhnYjRmRl92S45Hq17Y3iYs3KwnSgrZXfYlOiDgjO/Q
f+43bUByEGyLMOa2F+tmUbewXZ6EQCCmCIeSXHLhtZTXiBtPhPn+GXj4lEN6mcgb
TuDBwwXHLp5p7cl8YcY7GXlVS0LRZYlhvl3Za8lbXBF50257qfr31c=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=BjqZMKHFnHYRgAjUCkeCger7kGo=; b=QHs/R/2EQAyi82rAqLyUIAqqNL6A
wk6ua5jRxzFMKMcnqHMvuHv99W+25UTLxN/cDvGRFZhRdMHsDmoA+eaAIbNVJNtS
Qk+6Nl1WG7SG/8PongpHweidnUrXL8HWdYPbAvra1IMLWy0ZZkhCO4BRNLJGNFAc
cSMDKbboAKzWrUw=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 10 Feb 2015 22:06:53 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /dev/tty does not work from shell
Message-ID: <20150210210653.GB7818@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <54DA411E DOT 3040700 AT redhat DOT com> <20150210190451 DOT CC914740 DOT helmut DOT karlowski AT ish DOT de> <20150210193142 DOT 16499318 DOT helmut DOT karlowski AT ish DOT de>
MIME-Version: 1.0
In-Reply-To: <20150210193142.16499318.helmut.karlowski@ish.de>
User-Agent: Mutt/1.5.23 (2014-03-12)

--mojUlQ0s9EVzWg2t
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


Please, https://cygwin.com/acronyms/#PCYMTNQREAIYR

On Feb 10 19:31, Helmut Karlowski wrote:
> Helmut Karlowski <...> wrote:
> > Eric Blake <...> wrote:
> > > On 02/10/2015 09:46 AM, Helmut Karlowski wrote:
> > > >> The same test from the command line:
> > > >>
> > > >> $ stat -c %i /dev/tty - 0>/dev/tty
> > > >> 327680
> > > >> 8912896
> > > >>
> > > >> use any other (already-existing) file to see that the two numbers =
should
> > > >> normally be the same.
> > > >=20
> > > > Don't know why, but cygwin is not the only OS that does that. I'd=
=20
> > > > suggest to check for terminal or something.
> > >=20
> > > Umm, what other OS changes the inode from what you called stat() on to
> >=20
> > Well, I tested again and found that the inode only changes when I do=20
> > this in bash:
> >=20
> > ksh:
> > 675|/home/root}stat -c %i /tmp/tty - 0>/tmp/tty
> > 835940
> > 835940
> > 676|/home/root}bash
> > root AT IRAC root # stat -c %i /dev/tty - 0>/dev/tty
> > 713246
> > 80052544
>=20
> Ok, messed up the test. For /dev/tty it's the same for both shells and
> both OS. I looked it up in MiNT, and found ino is an internal pointer=20
> with no meaning to the outside.
>=20
> If it's legal to look up the inode of a device, then both OS should be
> fixed I think.

I applied a patch to Cygwin.  Please give the latest snapshots a try:
https://cygwin.com/snapshots/


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--mojUlQ0s9EVzWg2t
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU2nLtAAoJEPU2Bp2uRE+gyLMQAIxSiLqX4XqVdhCnpw5KqeS2
bNpCNg0y9t8ZTGmtdH/5m1JGOd6Ca+NDbSrf1RB2jvccw9HsRoqqjQ1iG/QHmVu3
75MOS6tJX/MXEe/YrZKNAVf48XuyAnJ6IC52ToAqnKTjmF5aSTeTAx+4PPxa3Lh3
cZNInIVDD7u2KD5zpP1Lrx6l88husYbPesGyo05dbG5ztIp9bBcClMmxOGlWOFCW
GtvHbOYU4taE2ZUjOhX6N5zdxe5DS8BdijEfCQy87GXWrG0VM5oQjWo0yDHLcko2
J5cZHcZia+NUvOX5dyPl1oYlsWMqjCNUp6q9C0zqnLQ3qDnqCC0pgitBeaOLV9yQ
swJFZpV7A4b8SzjJKpsJOjyHxIDTtUGX1/JJtRr24WC7HdpGuTUAhJ4iC5nvrkBy
YMeInsyaHTEv00lr6jFdO/Maf7wiryws7oIZpsAFMHRvOU/ztwlO9Q2kIHu/saCC
ro1JT5v6xC5ROBP7V62FUkaSlO14QREmlKWXXbnTDNQzK1MVSaVWhQzYrge+XnNa
ixJzwbIOx+gKoj9cEZZtS91IevSLKH/PwIyT7ObJnqjmiEPXwGLJ58Sw5xOtOUnL
JhIBXTGijYXJ8NC0dFGYze4tqoowTgShykfMn9lw37Fkronrn7WxUJ5Pdx/FzB0t
zFMBc+TqGtkih7MUDQsU
=kOIu
-----END PGP SIGNATURE-----

--mojUlQ0s9EVzWg2t--

- Raw text -


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