/usr/bin/realpath cannot handle UNC paths ?

Andrey Repin anrdaemon@yandex.ru
Mon Nov 6 17:30:38 GMT 2023


Greetings, Mainz, Roland!

> ----

> We're trying to use UNC paths (e.g. //server/home/xyz/), but some of our
> scripts fail when /usr/bin/realpath is used.

> Example:
> ---- snip ----
> $ uname -a
> CYGWIN_NT-10.0-19045 WINGRENDEL01 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin

> $ realpath "$PWD"
> realpath:
> //crawlinghorror_ipv6/home/rmainz/tmp/projekt_kraken/try11_rde/RDE-Development/build_windows10_msnfs_ipv6: No such file or directory
> ---- snip ----

> Bug or feature ?

> ----

$  pwd
//DAEMON-EC.DARKDRAGON.LAN/D

$  echo "$PWD"
//DAEMON-EC.DARKDRAGON.LAN/D

$  which realpath
/bin/realpath

$  /bin/realpath "$PWD"
//DAEMON-EC.DARKDRAGON.LAN/D


-- 
With best regards,
Andrey Repin
Friday, September 29, 2023 23:04:17

Sorry for my terrible english...



More information about the Cygwin mailing list