On 05.01.2020 18:23, Leonardo Taccari wrote: > Hello Kamil, > > Kamil Rytarowski writes: >> I propose to import realpath(1) from FreeBSD. >> >> It is a small program with less than 100 LOC. >> >> https://github.com/freebsd/freebsd/tree/master/bin/realpath >> >> The FreeBSD version works as-is (after patching __FBSDID and __dead2). >> >> realpath(1) is a part of coreutils on Linux and sometimes programs use >> it unconditionally, especially vlc in build rules. Avoiding coreutils >> for just a single program is a win. >> > > At least after skimming the man page - except for the no argument > different semantic - couldn't `readlink -vf' be used instead? > My primary intention is to get a drop-in replacement without patching 3rd party code. realpath is also merged into various shells (bash, fish). I am aware that there could be some workarounds or rewritting into more portable constructs. realpath(1) wraps realpath(3) and is at least to me a natural utility.
Attachment:
signature.asc
Description: OpenPGP digital signature