Broken links in Cygwin installation
Andrey Repin
anrdaemon@yandex.ru
Mon Aug 22 18:43:14 GMT 2022
Greetings, Andrey Repin!
> Small background: I've been moving my Cygwin installations around to match
> path locations between different systems. I've ended up with a lot of broken
> symlinks, between which some are actually lost.
> I've baked a PowerShell script to solve the issue (see attachment).
> Also in attachment a powershell startup wrapper for /usr/local/bin/
find -L / -xdev -type l -execdir fixmylinks.ps1 OldPathFragment New\\PathFragment '{}' +
In all broken links, script will look for "OldPathFragment", and if replacing
the fragment with "New\\PathFragment" produce valid existing path, it will
create a new link in place.
--
With best regards,
Andrey Repin
Monday, August 22, 2022 21:38:22
Sorry for my terrible english...
More information about the Cygwin
mailing list