cmd/ln/bug
Jump to navigation
Jump to search
2023-09-21
There seems to be a bug in the reporting when a desired link-file already exists.
Real-life example:
root@statler ~/dev/git/futilities/human/apps (v0.6) $ ln -r --symbolic ./ftm/go.php ftm
ln: failed to create symbolic link 'ftm/go.php': File exists
root@statler ~/dev/git/futilities/human/apps (v0.6) $ ln -r --symbolic ./ftm/go.php ./ftm
ln: failed to create symbolic link './ftm/go.php': File exists
root@statler ~/dev/git/futilities/human/apps (v0.6) $ ln -r --symbolic ./ftm ./ftm/go.php
ln: failed to create symbolic link './ftm/go.php': File exists
root@statler ~/dev/git/futilities/human/apps (v0.6) $ cd ..
root@statler ~/dev/git/futilities/human (v0.6) $ ln -r --symbolic apps/ftm/go.php ./ftm