Re:Relative shell script includes with realpath on FreeBSD
by andsens on Monday December 04, 2023 @06:29AM
(#38516007)
In that case whoever is linking the script is “breaking” it, I’d say. There’s stuff that is simply outside the responsibilities of the script/maintainer.
If you start worrying about that for “simple” scripts, the logic for handling that is quickly going to outgrow the initial logic itself.
[ Parent
| on HN ]
Re:Relative shell script includes with realpath on FreeBSD
by account42 on Monday December 04, 2023 @08:10AM
(#38516799)
Besides, hard links don't have a canonical target, they are all equally correct names for the file. So even if the script author wanted to support the same technique for hard links there is no reasonable way to do it.