From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89176 invoked by alias); 19 Feb 2020 16:47:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 89167 invoked by uid 89); 19 Feb 2020 16:47:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=earliest, offered, grepexe, expectation X-HELO: mail-qt1-f172.google.com Received: from mail-qt1-f172.google.com (HELO mail-qt1-f172.google.com) (209.85.160.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Feb 2020 16:47:09 +0000 Received: by mail-qt1-f172.google.com with SMTP id r5so661388qtt.9 for ; Wed, 19 Feb 2020 08:47:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ksckkr5WEibMyniRdEkk/fZdXIYBfKEi2W1KUrNXvSw=; b=MSP/RZHWiqlJLO1JMMP/+GEvCbGcQAhka5O3EWLOGwoH3SBeI0qaJHk1tkTwS0Rj/u 3Nm5fC8pk03tF1DqPE19qFspxkHPcPsIFFcOh0XCF7Vm+Rv9sIDbt0r2wBT7rMe++31Z aFBlVRAWTIPe7aDB/DfOWqqfTo3IV2jQgpcQGOhJEk1ZpnrLljcZRMWrxMV8i4IfZmAR Z2VLD2/vjg/Y/KhZTZMEFLKCNqJJ6csMTlk+a8cqxGqdBzYebNoQcBQUytGc3e2Bv5LE 5VjePfzxRX8kOk4zYsjKGM1ymKbr7yrycOiBntIdfV+vEwDyKNuQZN2iVMxgtkJbuz1W dflw== MIME-Version: 1.0 From: Paul Moore Date: Wed, 19 Feb 2020 16:47:00 -0000 Message-ID: Subject: CYGWIN env variable - glob option To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00148.txt.bz2 I'm not sure if I'm misunderstanding the documentation of the "glob" option in the CYGWIN environment variable. I have (this is under Powershell Core 7.0.0-rc2): $env:CYGWIN="glob:ignorecase winsymlinks:native" if I then try to grep in a file that exists, using wildcards to specify it, I get > C:\Utils\Cygwin64\bin\grep.exe . C:\Work\Scratch\mkpip*.ps1 /usr/bin/grep: C:\Work\Scratch\mkpip*.ps1: No such file or directory Using echo as a (presumably) simpler test case: >C:\Utils\Cygwin64\bin\echo.exe C:\Work\Scratch\*.ps1 C:\Work\Scratch\*.ps1 >C:\Utils\Cygwin64\bin\ls.exe -l C:\Work\Scratch\ total 1121 -rwxr-xr-x 1 Gustav Gustav 1144832 Feb 17 15:15 DigraphMgr.exe -rw-r--r-- 1 Gustav Gustav 172 Jan 23 10:37 mkpipclone.ps1 I thought that the glob option resulted in glob expansion being done before the args are passed to the grep command, so my expectation was that this would work. This is with the very latest cygwin DLL - 3.1.4-1. I tried downgrading to 3.1.2 (the earliest the installer offered) but that was no different. The odd thing is that I thought I'd tested this on anther machine, but now I can't get it to work as I expect :-( Am I doing something wrong? Or are my expectations incorrect? I need to work with "native" backslash-delimited path names, because that's how my shell autocompletes directory names, and patching them up with forward slashes isn't really an option for me. Paul -- 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