| delorie.com/archives/browse.cgi | search |
| 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:from:to:subject:content-type | |
| :content-transfer-encoding:in-reply-to:references:date | |
| :message-id:mime-version; q=dns; s=default; b=doqu+EQd6DXVNF+dWA | |
| +1gJ81HSDJjZGZd1W0nH6ZA4+VZ8YB/iUaGhHzZitIJTkyKjZWzf5cvfs6lLHJF8 | |
| U9PKlXzdl49FaTTe/kbkFAMUS2xDBtYryMNf80By5kw80eNtVCRIU25W+Lzi7oJr | |
| 8YEJizDmxHEa2jazEnc/jXzKU= | |
| 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:from:to:subject:content-type | |
| :content-transfer-encoding:in-reply-to:references:date | |
| :message-id:mime-version; s=default; bh=gxj47nPynVstvc18e9O3+SWP | |
| oZ8=; b=nuEhuuQ+JEURT/d51vcgftvLdxPGb8IPfMf9j533TbHz8F2I2tGPgB78 | |
| JUcdAJxOgDDBDRWoav/yzM0hLleybJAqVppnZy/2PhAn2eFuQW5itcemuezNrafP | |
| ZLYjNJUjMAvyKARWzaD4GtR744thbW2N39jIuH5uNLlFOQAuA3w= | |
| 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=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
| X-HELO: | mailout.ish.de |
| X-Spam-Score: | -0.01 |
| From: | Helmut Karlowski <helmut DOT karlowski AT ish DOT de> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: /dev/tty does not work from shell |
| In-Reply-To: | <54DA411E.3040700@redhat.com> |
| References: | <20150210174647 DOT 7760EAC0 DOT helmut DOT karlowski AT ish DOT de> <54DA411E DOT 3040700 AT redhat DOT com> |
| Date: | Tue, 10 Feb 2015 19:04:51 +0100 |
| Message-Id: | <20150210190451.CC914740.helmut.karlowski@ish.de> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
-------------------------------------------------- Eric Blake <eblake AT redhat DOT com> wrote: (10/02/2015 18:34) > 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. > > > > Don't know why, but cygwin is not the only OS that does that. I'd > > suggest to check for terminal or something. > > Umm, what other OS changes the inode from what you called stat() on to Well, I tested again and found that the inode only changes when I do this in bash: 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 Ths OS is MiNT. On cygwin in both cases the inode changes. Again: I would not use the inode of a special file at all. -Helmut -- 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |