Subject: bug#64604: closed (Re: bug#64604: readlink exit booelan value bug)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 14 Jul 2023 02:55:03 +0000

Your bug report

#64604: readlink exit booelan value bug

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64604: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64604
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64604: readlink exit booelan value bug
From: Paul Eggert <[email-masked]>
To: Budi <[email-masked]>, [email-masked]
Date: Thu, 13 Jul 2023 19:54:09 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

On 2023-07-13 19:38, Budi wrote:
> /tmp$ readlink -f ./KERNEL-linux-6.3.9  && echo SUCCEEDS FIND IT
> /tmp/KERNEL-linux-6.3.9
> SUCCEEDS FIND IT
> 
> but correct at deeper depth:
> 
> /tmp$ readlink -f ./KERNEL-linux-6.3.9/fs  && echo SUCCEEDS FIND IT
> 
> 
> 
> look it up, no KERNEL-linux-6.3.9 dir.:

That's not a bug. The documentation for -f says that the last component 
need not exist. Sounds like you want -e.

Subject: readlink exit booelan value bug
From: Budi <[email-masked]>
To: [email-masked]
Date: Fri, 14 Jul 2023 09:38:06 +0700
List-Id: <debbugs-submit.debbugs.gnu.org>

EDIT ABOVE MAIL TO HAVE TITILE

readlink exit value is TRUE as it actually must be FALSE at first
depth dir. with -f or -e option e.g. in /tmp dir:

/tmp$ readlink -f ./KERNEL-linux-6.3.9  && echo SUCCEEDS FIND IT
/tmp/KERNEL-linux-6.3.9
SUCCEEDS FIND IT

but correct at deeper depth:

/tmp$ readlink -f ./KERNEL-linux-6.3.9/fs  && echo SUCCEEDS FIND IT

look it up, no KERNEL-linux-6.3.9 dir.:

/tmp$ ls -Apv
.ICE-unix/                      opera/
.X11-unix/                      ssh-Xbe0jzj/  .xfsm-ICE-1BY671
.org.chromium.IfJAAT/   dbus-QZsDmoWAoc

On 7/14/23, Budi <[email-masked]> wrote:
> readlink exit value is TRUE as it actually must be FALSE at first
> depth dir. with -f or -e option e.g. in /tmp dir:
>
>
> /tmp$ readlink -f ./KERNEL-linux-6.3.9  && echo SUCCEEDS FIND IT
> /tmp/KERNEL-linux-6.3.9
> SUCCEEDS FIND IT
>
> but correct at deeper depth:
>
> /tmp$ readlink -f ./KERNEL-linux-6.3.9/fs  && echo SUCCEEDS FIND IT
>
>
>
> look it up, no KERNEL-linux-6.3.9 dir.:
>
> /tmp$ ls -Apv
> .ICE-unix/                      opera/
> .X11-unix/                      ssh-Xbe0jzj/  .xfsm-ICE-1BY671
> .org.chromium.IfJAAT/   dbus-QZsDmoWAoc
>