Is readlink broken ? as it returns links for files that do not exist.
$ readlink -f imsureyoudonthavethisfile
/home/build/imsureyoudonthavethisfile
Is readlink broken ? as it returns links for files that do not exist.
$ readlink -f imsureyoudonthavethisfile
/home/build/imsureyoudonthavethisfile
Hi mate
This looks like expected behavior :
I found that 17 years old xD :
https://bug-coreutils.gnu.narkive.com/HF7tFpML/readlink-f-foo-fails-if-the-target-of-foo-does-not-exist
I have similar behavior on a RHEL 8.2.
Hi Olek,
Wow, that sure sucks , well adding an [ -f ] then.
Thanks mate!