delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/16/17:50:25

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D6293858418
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1710625824;
bh=XK6I3y9ka5xfAGeqtyd10uXEw7aDg6Jk1DWN0NqUb3A=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=wraXOex0uU3e2rozEUV9jTBaYkB896v1gSkTu7uASi7ijNU0GzpQVWxk96ThjcT2U
hoxdxcUS4uc9ZaCznp+as/ieJyM24EoT5/QAVAXAX5ZHig9Bb/dfwLHmA6klqbLH5y
o1VibKxO3l8kJCrmi46juMs8XL4PQmbkYsUeHuYo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 71F0A3858C50
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 71F0A3858C50
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710625804; cv=none;
b=gFevT2lxnyP4+Ox4jhvBYUzBKURqO0MCPfnLp7nQYmizg1rBhsBdC3ihXuMfJpwU94JHDrhcTRDa1h9mm/6sam18OxNuj+aSqCNSUdmdcIXKze/07+2+oHGvd4s8yBzLK2GLLwP5rpgeFcWGTvJb6QivcSVj+dGC3oFfwFKKIjg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1710625804; c=relaxed/simple;
bh=9m/IJJVrS8F0HINXBVeVLx6uSg+A7sUUWCK3KN5NebA=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=aupjQFhefhaWlfe002k++u93JQK8y2LvYDI8feORsRbeuouIvEMRYsht9WLyqbrJ/40e1aRn6UQOTdR5iYeyB3C+kK4gxE2Lb4lsbpsVSN9eAdfBimubRvYevOijUCpWxxtPANMmL3LSkN/2+5zKjHAc5SGQJ2895Y+YUKcJg+g=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1710625801; x=1711230601;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=9m/IJJVrS8F0HINXBVeVLx6uSg+A7sUUWCK3KN5NebA=;
b=mrjPB3o4NfN/HE+ZBgUDaWSnc+DPZlwTGYExP01mwqgu7KddH6lm7lfswFUfS//KTg
ryxYQDP4pmnOv6AlXe5GNVTwZpMUue2AzeCn+UPvfwP8kAyEt74Xs4bPgB45P6+/7RRZ
+avcbrEi23m3UAB0o0VU4clb1HUyrrVq9PJzFeFYVU6yZTyYYy/7x1tfaotbuy1/MmyG
tAhemrMnTIO1oNsn5Nb1CMxULmCptA4W8xAd3Kpdq7OSZN+5jSBg8s2niDHwX/fVWiNX
dQncX7ReHYaci/ycdXW37TYaSFkVCGUQr4H+kuDv2B0Zp0Zdliq9kuoXNekbFD/0z/zV
zWJQ==
X-Gm-Message-State: AOJu0YwLYPefogLPqG1Fxlfl0tuKoJfzMwI6X7wYA1EwkPBsN4GzJMry
AdA2WPImvhJN6gd41bTRD8DKRuciWruS3ozvovctOaiJxoZ4kFokmp0K8IaK6M7E0Q9Y+/o+3h6
2Ba0TuSjWjWhqZKEirpqB1c2RPntzCO1kLkGA8A==
X-Google-Smtp-Source: AGHT+IGc49LNqbjDx0XrTtyRQ0MvUkFWI1YvgHkKAm5Bjkje8MdN2udwoh1+JHRQbCsVViz6FfXSsO2XPvT9vgFeJ5Q=
X-Received: by 2002:a05:6a20:6f8f:b0:1a3:4469:5967 with SMTP id
gv15-20020a056a206f8f00b001a344695967mr10486367pzb.57.1710625801062; Sat, 16
Mar 2024 14:50:01 -0700 (PDT)
MIME-Version: 1.0
Date: Sat, 16 Mar 2024 16:49:45 -0500
Message-ID: <CAEFTnVM7jVQ6_ikUggQQqVq2fwB5bm2EfEdnRB3UT8Gj_xeAOw@mail.gmail.com>
Subject: Additional odd behavior after my upgrade to the latest CYGWIN64
version
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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>
From: Michael Goldshteyn via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Michael Goldshteyn <mgold10000 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Cygwin handles (filename) case insensitivity in a very weird way at the
Windows command prompt:
------------------------------
c:\Users\Michael>set CYGWIN=

c:\Users\Michael>printf "%q " 'a' 'A' "a" "A" a A
a A a A a A

REM OK, so far so good, but, now:
c:\Users\Michael>set CYGWIN=glob:ignorecase

C:\Users\Michael>printf "%q " 'a' 'A' "a" "A" a A
a a a a a A

REM So, if I don't put a command line arg into any sort of quotes, it gets
lower-cased for cygwin apps (from the Windows command line).
REM I should also add that there is no file named 'a' or 'A' in the current
working directory.

REM This behavior, of course, doesn't happen in Cygwin bash:
------------------------------
C:\Users\Michael>bash
Michael AT lambda /cygdrive/c/Users/Michael
$ echo "$CYGWIN"
glob:ignorecase
Michael AT lambda /cygdrive/c/Users/Michael
$ printf "%q " 'a' 'A' "a" "A" a A
a A a A a A
$ # Output looks correct, quoted or not
------------------------------
The unsolicited conversion of case for quoted string is very odd, to say
the least. If you remove the glob:ignorecase from the CYGWIN env var
definition, use of filenames on Windows with Cygwin tools becomes
completely case sensitive, which is very undesirable when compared to the
fact that other Windows tools do not care about file case (i.e., case
insensitive, but preserving, as MS puts it).

-- 
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