X-Recipient: archive-cygwin@delorie.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:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=M9SlMdnaMBeBK0z8Df+wuwuQ9UFjP
	5tbuD+Tsm4VymmucFOWIrCUVCff+VycsorrYoAYuxc6Xw/tdVXlpnM+5WuiKlSTu
	t0pqN/ZA2bmvX7bGcU0GqIdKBwZMZe7VuT4pFZ/oJzBzqCNHyXiwVPN8RgXoMOMO
	FUeydtDFPfrBtg=
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:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=oVh9MqNZ+M2BuLN8YpSQdz672zc=; b=iR0
	ZpXfrqbwInIRSlHfqgPEEQDUKDL94H3BChfrGuOdn7Sen2cBr6GptWWGkqJNWTee
	oNgI03Yl2n0YLXv8+89TM5YezR0KdDprrOV7tajIyznOmvXR4Ej5W6hQVIA4KKen
	edH4C6bI8VGDU+mZe1HrkVik6iZbLREF/Vux/eUw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_05,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nihxway5out.hub.nih.gov
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgMFAOMAD1ScKEes/2dsb2JhbABZgw2BLtFyAYEOFniEBAEBBBIoTwIBCA0VFBAfEyUCBBsaiCCcG6AXARePHDiDL4EdBZFBA5MZjUSDYYI0gQcBAQE
X-IPAS-Result: AgMFAOMAD1ScKEes/2dsb2JhbABZgw2BLtFyAYEOFniEBAEBBBIoTwIBCA0VFBAfEyUCBBsaiCCcG6AXARePHDiDL4EdBZFBA5MZjUSDYYI0gQcBAQE
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder@niaid.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: latest cygwin: 'run' problem
Date: Tue, 9 Sep 2014 13:31:05 +0000
Message-ID: <6CF2FC1279D0844C9357664DC5A08BA20EBC4B75@MLBXV06.nih.gov>
References: <87a96hrki4.fsf@Rainer.invalid> <54060378.2070108@gmail.com>    <5406680D.4030105@verizon.net> <540761FA.1040902@verizon.net>  <87ppfcqyc7.fsf@Rainer.invalid> <540A600A.6090201@verizon.net>  <540A6817.9080207@verizon.net> <20140906201229.GA9220@phoenix>  <20140908174606.GA4187@phoenix> <1448944831.20140909024857@yandex.ru>  <20140909011413.GC4187@phoenix> <836662195.20140909170801@yandex.ru>
In-Reply-To: <836662195.20140909170801@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s89DVpdq021812

Andrey Repin sent the following at Tuesday, September 09, 2014 9:08 AM
>That makes little sense. Could be solved, though. CMD doesn't offer a
>way to distinguish between file and directory, but we have test.

Every directory contains a virtual file named nul (note: only one L;
serves the function of /dev/null ), so one can test for that.

c:\> if exist c:\Windows\nul echo y
y

c:\> if exist c:\Windows\explorer.exe\nul echo y

c:\>

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


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


