Allow ln to convert absolute symlinks to relative and vise versa
Add a libary to allow that functionality to be added in other places as well as well as a man page fo rthem
Differential D9917
Add abs2rel and rel2abs to libutil and use them in ln to provide the -a and -r options julian on Mar 7 2017, 6:33 AM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Bapt has convinced me to add these functions to libutil instead of keeping them in libpathconv as they originally came. Comment Actions p.s. I'm still considering line 266/267 in ln.c which came with the original patch, but I have not totally understood yet.. Comment Actions Don't forget to bump the date in ln(1) I am still wondering if 2 commits would be cleaner? one for the move in libutil and one for ln(1) addition but I have no stong feelings about it For manpages please use make manlint in the source tree
Comment Actions First off in the unix philosophy /we also be adding a relname in the spirit of IMHO we should not be adding -a and -r type stuff to install and ln, but instead First glance at man page should reflect that -a | -r are only applicable Line 293 of ln.1 adding , after -F and making option plural is incorrect. I do not see logic in the program to check that -a or -r are only accepted if -s is used. I am going to stop here, as I know there is a way to inline my comments but I do Comment Actions Please add jilles@ to the CR. I suspect I'll need to convert the tests to ATF/TAP proper, the way they're written (they're simple enough to convert).
Comment Actions there are two programs in the tests directory, rel2abs and abs2rel that could be used fo rthis should we decide to promote them from test to real.
need the funcitonality else where and it's already part of ln in other systems โ-rโ Make symbolic links relative to the link location. Example: ln -srv /a/file /tmp '/tmp/file' -> '../a/file'
yep
accepted but ignored
click on the line I think Comment Actions This comment has been deleted.
Comment Actions Does install -l rs not work as advertised? It seems like it should according to what's being sold in man 1 xinstall.
|