public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: "Wolfgang S. Kechel" <wolfgang.kechel@prs.de>, cygwin@cygwin.com
Subject: Re: Misbehaviour of cygpath -am between versions 3.1.4 and 3.3.2
Date: Wed, 17 Nov 2021 19:44:54 +0300	[thread overview]
Message-ID: <14910218332.20211117194454@yandex.ru> (raw)
In-Reply-To: <2ebc67f4-b82c-b197-c486-f04735f6fcb0@prs.de>

Greetings, Wolfgang S. Kechel!

> The command 'cygpath -am .' yields different results between
> cygwin-3.1.4-1 and cygwin-3.3.2-1 on a Windows 10 box when the current 
> directory is a network share.

> Example with V3.1.4:

> cygpath -am .  ---> P:/mytool/gbuild/wintel/libtiff

> Example with V3.3.2-1

> cygpath -am .  ---> //mynas.mydomain.de/product/mytool/gbuild/wintel/libtiff

I'm pretty sure there was a discussion about it earlier.

> This causes UNC filenames to appear and this cmd.exe is unable to start 
> in those directories when started from a cygwin shell or from nmake run 
> in a cygwin shell.

cmd.exe can be configured to STFU.

>> $ cd $( cygpath -am . )
>>
>> $ cmd /C DIR .
>>  Volume in drive \\DAEMON1\anrdaemon is anrdaemon
>>  Volume Serial Number is 3D5A-4F9A
>>
>>  Directory of \\DAEMON1\anrdaemon\Documents\_ps1
>>
>> 22.07.2020  10:23    <DIR>          .
>> 27.07.2021  19:21    <DIR>          ..
>> 28.08.2019  14:25    <DIR>          HTML5Video
>> 22.03.2020  00:22    <DIR>          Maintenance
>> 22.03.2020  00:23                88 wmi.btm
>> 29.08.2018  18:14             1 871 dl-files.cmd
>> 01.09.2019  18:01               194 ats.sh
>>                3 File(s)          2 153 bytes
>>                4 Dir(s)  361 313 710 080 bytes free
>>
>> $


> I prefer to get the old behaviour back since it worked for 20+ years up 
> to now - or at least an option to enable the old behavior again.

The option is in https://ss64.com/nt/syntax-cmd.html (Original article from
web archive:
https://web.archive.org/web/20150312195558/https://support.microsoft.com/en-us/kb/156276
)

> Please note that I have not subscribed to any cygwin mailing list.

Noted…


-- 
With best regards,
Andrey Repin
Wednesday, November 17, 2021 19:36:02

Sorry for my terrible english...

  reply	other threads:[~2021-11-17 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 14:41 Wolfgang S. Kechel
2021-11-17 16:44 ` Andrey Repin [this message]
2021-11-17 18:29   ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14910218332.20211117194454@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=wolfgang.kechel@prs.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).