cygpath command no longer accepts -s (--short-name) switch

Andrey Repin anrdaemon@yandex.ru
Fri Nov 15 13:13:10 GMT 2024


Greetings, Soren!

> Hello users. I have a reasonably recently installed Cygwin that I've kept
> updated with setup. I am just now seeing that the provided `cygpath`
> command no longer works the way it ought to. Could someone(s) confirm or
> deny this?  And fix it, because it is an important facility.

> $ cygpath -ua --short-name '/cygdrive/c/Users/somia/Local Settings'
> [dumps you into "help"]
> $ cygpath --version
> cygpath (cygwin) 3.5.4

> Appreciation in advance for your interest and help.

Adding to the previous responses, there could simply be no short name.
Check `cmd /C DIR /X`.
Or for a more common solution, a batch script like

    @FOR %%i IN (%*) DO ECHO %%~si

will be helpful. Pass it a list of names/paths and it will print the short
versions of them line by line.


-- 
With best regards,
Andrey Repin
Friday, November 15, 2024 15:59:39

Sorry for my terrible english...



More information about the Cygwin mailing list