delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/04/08:20:45

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=to5JN9i5PURMVUZn
JgpM59q5BRIq1wMoojBs8U7hbANBRcgQo61jfrq+iKcVUQpX6cMHg5+UCmKNrgjY
svpFKMCCClxobWmztNGIti1vzZQ/hS2RHoL2+ngjdH9ungqWGqDQcnj7M9LGe3kI
64AMS/yYBjGXbCGzaUzNU4l7byI=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=d82gd9AaKWJ29mS/p4DedB
vJnnc=; b=kHprmiJnnmjTwIX24HXNnMuHCyxCgZhYteq/0DtjVEW3Mt6KEX/LXR
zO9xmhBK/M/DfF9JsOcSHZsGOkLYo/pst5glgA5mQezrWI2ya6f6OcmzCPxHsqce
fGoiRAeTAMrxlGPE9csJZMqbzla4whLbAuojlq+YSq2f4JWR4yV+0=
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.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*Ad:D*rogers.com, H*F:D*yandex.ru, Repin, repin
X-HELO: forward10p.cmail.yandex.net
Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Thu, 4 Aug 2016 15:13:07 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1198248887.20160804151307@yandex.ru>
To: "Michel LaBarre" <michel DOT labarre AT rogers DOT com>, cygwin AT cygwin DOT com
Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
In-Reply-To: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com>
References: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u74CKfNp017418

Greetings, Michel LaBarre!

> Problem 1:  Cygwin does not support PATHEXT and really should.

No, it should not. Cygwin is a POSIX environment, and it uses POSIX
conventions to determine if a file is executable somehow.

> PATHEXT is as fundamental component of Windows program execution as PATH.

PATHEXT is a shell (CMD) extension. Some programs do make use of it, notable
file managers and CMD replacements do, but overall, this is a mechanism of
finding the file to execute, not of executing it per se.
You can write your own extension to bash-completion "file-not-found" handler,
if you so desire.

> Problem 2:  Cygwin does not support CR-LF delimiters.

Cygwin, in this case, is a library (newlib), and it doesn't care about
delimiters. This is an application's choice and right to support various EOL's
or not.

> For the same reason, it is unfortunate that CYGWIN/bash does not cope

bash do cope, if you tell it to do. So does Cygwin, if you use text mounts.
Which is a sure way to destroy your data and cause lots of other messy
behavior.

> with both types of line delimiters transparently.

-transparently
+ambiguously

> I have been using and developing system software within Unix since 1974 and
> Windows since the mid-80's.  in more recent years (since the mid-90's) I
> have developed extensive sets of tools (sh/awk/etc..) for corporate and
> public sector clients - on the order of 100,000 lines of code for
> representative projects.  Most had to run under both Solaris and Windows
> environments for which I used the MKS toolkit. 

And they do run fine, as long as you are not making stupid mistakes, like
using bogus EOL terminators and expecting the program to work equally on
different systems.


-- 
With best regards,
Andrey Repin
Thursday, August 4, 2016 15:03:06

Sorry for my terrible english...

- Raw text -


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