delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/02/19/11:48:04

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=KwqN44TNehS2dpgwsC894MDl6w/OV
f77Xtxr7BEMk95R8GfV2rDtjmMEkdOXdcILq3m9X1FLlLR2Bv6hrh9ouc+vBTJAd
kniBZGuWbtrL/eNelyAGrHrMrLE5rtHXc6v8w8YjPr9+R6kbJZdotP/EcEy5kPo8
8Fn6vPC+YQZYjc=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=yB/dWMDsHV2Dbwj4lYE4bVv+EaA=; b=AkT
8q9gXAIYaJro+E9ijoUwWCj1I1KLkNiBLEFx98yklCMCHJc3/k8EN+Lhh8jemU1e
m3gD6jaJ95ISkVxqqXfMBvL3xWbV3EpVpD5hYS99cWImNd5bBFnoTP1LCRCMng8D
1wBgf1Sg9V/ueb8xi4gCFgWkxMohmbwfP9u9150o=
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-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
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 <p DOT f DOT moore AT gmail DOT com>
Date: Wed, 19 Feb 2020 16:46:57 +0000
Message-ID: <CACac1F_8+6mDAarSawsKCVea7FuUDsWc3XseLLpH3zdZTbLC_Q@mail.gmail.com>
Subject: CYGWIN env variable - glob option
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


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