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