delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/18/11:32:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 31CE23858004
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=moss AT cs DOT umass DOT edu
Subject: Re: Sv: g++ and c++17 filesystem
To: cygwin AT cygwin DOT com
References: <000001d6bcf4$736e0300$5a4a0900$@gmail.com>
<11aad449-bcce-5dd3-8ebf-c751e18b5623 AT gmail DOT com>
<001701d6bd89$53312ff0$f9938fd0$@gmail.com>
<c2d6280c-26e3-f9e7-89bd-693385a768b2 AT gmail DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <1f6849f1-2d79-8249-8009-d8a99daefed0@cs.umass.edu>
Date: Wed, 18 Nov 2020 11:31:21 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <c2d6280c-26e3-f9e7-89bd-693385a768b2@gmail.com>
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0AIGVmJv022098

On 11/18/2020 11:24 AM, René Berber via Cygwin wrote:

> Cygwin handles the file system with no problem, but using Posix-like notation, not Windows-like.  
> End of story.

And I'll add, this is by design: Cygwin's goal is to provide a programming (and command line) 
environment as much like Posix as reasonably possible.

It does include some tools to help interface with Windows more explicitly, such as cygpath and 
cygstart.  I have defined a bash alias ppt that refers to a bach function powerpnt, defined thusly:

powerpnt ()
{
     local ARG;
     [ -n "$1" ] && {
         ARG="$(cygpath -wa "$1")";
         shift
     };
     [ -n "$VERBOSE" ] && {
         echo powerpnt ${ARG:+"${ARG}"} "$@"
     };
     command powerpnt ${ARG:+"${ARG}"} "$@" &
}

This takes the first argument and converts it from Posix to Windows form, for passing to the 
powerpnt binary.  And then I have a file system link so that "command powerpnt" gets to the 
installed Windows binary C:\Program Files.

But this is by far the exception as opposed to the rule in how I use Cygwin.

In hope that this give you some perspective and insight as to what Cygwin is and why.

Best wishes - Eliot Moss
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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