delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/14/04:11:06

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03D7638515F1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1626250265;
bh=7Ho68q+8Crvf/3+yuI7x9jGl93umwwk8dwsImlcTBtw=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=LmOXpM4QR/1+FFJkKlXYl+3s7cYL1XQP7Cl0kJDFYotnXhGUGySCuOV2znweiYXrE
V7b3+rkxgrDvJwaNWYvdc32PZtSG0rVmklZgR6Y7xbbJoqX9NxThifvjDilSu5DKr8
HT1+fpqKTfN/2R08KQoGK0b3GtQsqdzk7gB2aGF0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 84786385DC3B
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:to:from:subject:message-id:date:user-agent
:mime-version:content-transfer-encoding:content-language;
bh=iBccXDLSwyXfVDI1VnjHYkjQQJObvXYP+bJKLfNWbjE=;
b=IsS0E9IlNTgbuhz+5F2ehtniIPuVx70GeXiN2rHGAr4CzOyYJ0A5Wu7I7SoPshRg6i
UZgbQmmPc5+5hX1HcvrUjTBpdTzCEq5JnJo0ePbCR6IRENx0J2aLjRFA54YOKkCeW1vt
NARfGnRGDUWvEBmr+8yH6cpjiykqaKzqvg5ld1cNJsGzf01q1iOUhkX+AfoZLLb9gnva
qMxpizLr/DLpuR/HWKTjD8rjLSHN/TB00UN/ZDPcOP25cSZUP66J42+SmB/VsH3m82Zb
uSf6BzBVyuB+LrDOUimb/DISJe5MOeLDxj7zN64FllcfpsWx/YG8RsRydEGU48gH5AA8
Po+w==
X-Gm-Message-State: AOAM533VO9twLx2NmdCJ6XFcuSeuTkFJxlST3WPMGGuP2Kdhsu0s++Vp
iOLPeo3tbRO220XkS4XfZqevD/scqNE=
X-Google-Smtp-Source: ABdhPJw0xQml6Y/KZmUjXQtBtlzt0fvoHxKyA+Kw41hbZSQtYSi7QH4V05yGe/YshM51bOA8u7kosw==
X-Received: by 2002:a17:906:814f:: with SMTP id
z15mr11187255ejw.178.1626250229567;
Wed, 14 Jul 2021 01:10:29 -0700 (PDT)
To: cygwin AT cygwin DOT com
Subject: cygpath and star character
Message-ID: <7fa873dc-e4cb-8217-5844-82db627bd871@gmail.com>
Date: Wed, 14 Jul 2021 10:10:27 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
MIME-Version: 1.0
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF,
FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-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: Tomas Jura via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Tomas Jura <tomas DOT jura1 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 16E8B6Gf006842

Hi

I found a strange behaviour of the program cygpath program

0 >cygpath -w "./*/*"           <--- IMHO wrong output
  \

0 >cygpath -w "./*/*"  | od -a                   <--- a detailed dump
0000000   o nul   *   \   o nul   *  nl
0000010

0 >cygpath -wp "./*/*"         <-- but this works as expected
*\*

Is this bug or expected behavior ?

Pls, answer to me in To:, I'm not a permanent member of the cygwin email 
list.

I found it during assembly of the Java CLASSPATH variable, which may 
contain the "*" character at the end to cover all .jar in the specified 
directory.

Tomas


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