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=mnq6sKY7T4tOSqVDdnJUiin+wjPmX94biqxUyocRL6CNO8GkQ/XqI fo0RK0fMMLgWki6xP/1761hSQ41NnrmHbVamsDuAH9j4nvsa/15YWGaAp36JdWc+ aPX3ijRs5Fra4tBOc6b/87DBn9lDsEz3yNtj2F0X4x5zsutXXEOnRw= 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=0+0RdBXVZsRLaGjVQATtZ4TeKLM=; b=WfVSj4DSDQsN7SEggdK+PHjWBUKw pfBh+t/9BwMAH6U+oIAUETEiDfLQUOsg7LAVYL0DxuoGDG7sfNoF7CsAN1pnT/xq S6ECe5eq7gkMQnT0MfiItCxtL9vAZVYbeQaYNdTGYfGVwmZYNtHA5/ZyaTFUhY48 xDgNAPiQDkEL4us= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Fri, 23 Jan 2015 10:43:22 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: opendir(/dev/fd/n) should fail Message-ID: <20150123094322.GA5612@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20150122091848 DOT GF19127 AT calimero DOT vinschen DOT de> <20150122135530 DOT GG19127 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --envbJBWh7q8WU6mo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 22 23:19, Helmut Karlowski wrote: > Am 22.01.2015, 22:47 Uhr, schrieb Helmut Karlowski: >=20 > >#! /bin/bash > >(set -o globstar 2>/dev/null) && set -o globstar || shopt -s globstar > >extglob > >echo /dev/fd/** >=20 > run this in on mintty, and then in another: > ps: > ... > 816 4012 816 176 pty0 1004 00:15:27 /usr/bin/obash > 676/home/hk#ll /proc/816/fd > total 0 > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 0 -> /dev/pty0 > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 1 -> /dev/pty0 > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 10 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 100 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 101 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 102 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 103 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 104 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 105 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 106 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 107 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 108 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 109 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 11 -> /proc/816/fd/ > lrwxrwxrwx 1 hk Benutzer 0 Jan 23 00:15 110 -> /proc/816/fd/ >=20 > numerous entries ... This occurs on Linux as well, just with a few less entries in fd (42 rather than 560). These descriptors are apparently created by bash for some reason I don't know, and our bash seems to create some more descriptors than the newler bash on Linux. Eric, do you happen to know what bash is doing here? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --envbJBWh7q8WU6mo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUwhe6AAoJEPU2Bp2uRE+g7zEP/29C98IaaJN+OE7BQXzw/bXO UDjW1Ax5PofdO7VPWN0qABWSlORGgTJswlewYZJz3NhLR8pcr70c9lQCWr/MOc/K tujK3lN4RtnRY7sp3w3FnF12xp3C0hG4CLOMy6WvBAxKjWsJX0OTfqXbkTsJNBC2 U6RUb8bhPMDfgm7kdnBVA352Ol4Gq8GhU4gvXCBpqRupvy9SPlB2fXZLf+aAR06L eeXcvGD0KGFMuXX3dPTSAmn6MQaFtdNL5tc8ZZFOP3iCZEIHykvr9XZbdIIQtxMA j+ZWtrr4G9eFvETQFUCweSSrK4ixlDRMNMGbTsE7cKbbUlni7B6DmMUv+RoX7z0x spzVVupQiWlkXeYIdcDrlqHHAuQ5+lkvDtys8Ruu2yi3sS3GMyRAnrDwMpZnhjCL CVFObcnlcCUuvFoRa+fXSJHA3i1fqgZXoKdJ50DVjGyt64Mz/4D5hjdfb0rA3Y7H ErC8eE+giHLBZOqO4wHZguiBfMsEEt4Iid4fy65JWMY7CpNKUvZ/Vy/09UoKWsgL jYkgmpeTs80Cd9zhTq4HKFq6dwMaJo8Ngc0Ozk7vHjifZCI/oTPGGK9B53HKQEJw 9pyH0HkcBUD9f30rSzEhORzMgMKqMp/qG2+e0QJNnBAr5n3AgmIZv251VY7IUcQ0 i5IxTuCRZOmaI7Qe3VB9 =FyPk -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--