Who broke readlink?

Is readlink broken ? as it returns links for files that do not exist.

$ readlink -f imsureyoudonthavethisfile
/home/build/imsureyoudonthavethisfile

Hi mate :slight_smile:

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 :innocent:, well adding an [ -f ] then.

Thanks mate!