delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/09/09:31:57

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: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 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=-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 AT niaid DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: latest cygwin: 'run' problem
Date: Tue, 9 Sep 2014 13:31:05 +0000
Message-ID: <6CF2FC1279D0844C9357664DC5A08BA20EBC4B75@MLBXV06.nih.gov>
References: <87a96hrki4 DOT fsf AT Rainer DOT invalid> <54060378 DOT 2070108 AT gmail DOT com> <5406680D DOT 4030105 AT verizon DOT net> <540761FA DOT 1040902 AT verizon DOT net> <87ppfcqyc7 DOT fsf AT Rainer DOT invalid> <540A600A DOT 6090201 AT verizon DOT net> <540A6817 DOT 9080207 AT verizon DOT net> <20140906201229 DOT GA9220 AT phoenix> <20140908174606 DOT GA4187 AT phoenix> <1448944831 DOT 20140909024857 AT yandex DOT ru> <20140909011413 DOT GC4187 AT phoenix> <836662195 DOT 20140909170801 AT yandex DOT ru>
In-Reply-To: <836662195.20140909170801@yandex.ru>
MIME-Version: 1.0
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


- Raw text -


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