GNU bug report logs -
#64604
readlink exit booelan value bug
Previous Next
Reported by: Budi <budikusasi <at> gmail.com>
Date: Fri, 14 Jul 2023 02:39:02 UTC
Severity: normal
Tags: notabug
Merged with 64603
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Thu, 13 Jul 2023 19:54:09 -0700
with message-id <ba54d29f-39c6-0575-9867-cfbd7efabcda <at> cs.ucla.edu>
and subject line Re: bug#64604: readlink exit booelan value bug
has caused the debbugs.gnu.org bug report #64604,
regarding readlink exit booelan value bug
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
64604: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64604
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 <budikusasi <at> gmail.com> 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
>
[Message part 3 (message/rfc822, inline)]
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.
This bug report was last modified 1 year and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.