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:content-type:to:subject:references:date :mime-version:content-transfer-encoding:from:message-id :in-reply-to; q=dns; s=default; b=nrPFYcBS5ye3y8poCOSCFsKtVBT/H4 fZTFLF5DpouNSEPffSsPxCtFxzOFd8t7xSccD+tfKFr+HU6aDKLLkX0ct1kCJ++6 3WMiQ5mBQPlXa67NLosT2tlmgjYCMGOYjiT1hezP/jpoCSSGu+olTfy1zQStHyAn /4Zv4nhPNliT4= 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:content-type:to:subject:references:date :mime-version:content-transfer-encoding:from:message-id :in-reply-to; s=default; bh=p3+ZuHE512Z53Qfx8nTHNR3VKtQ=; b=L26n 31hAhswWjZMGyk8fCRKOP/DXbo8Bl3TvN3IH69d1IGmVJBtB9jeSn4VZIqL/8tCx bkQT/s/42nPhbElPTzBHP7afot+/17E1EDxO/WtAq73k0Af1SBP9gpk+8UBTNxmX zV6mGn0eHQQuh6BeqRYw0vNELD2sW0ftcvRVfCk= 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=-2.0 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 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: cygwin AT cygwin DOT com Subject: Re: opendir(/dev/fd/n) should fail References: <20150122091848 DOT GF19127 AT calimero DOT vinschen DOT de> <20150122135530 DOT GG19127 AT calimero DOT vinschen DOT de> Date: Thu, 22 Jan 2015 23:19:22 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Helmut Karlowski" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (Win32) X-IsSubscribed: yes Am 22.01.2015, 22:47 Uhr, schrieb Helmut Karlowski: > #! /bin/bash > (set -o globstar 2>/dev/null) && set -o globstar || shopt -s globstar > extglob > echo /dev/fd/** 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/ numerous entries ... -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