Re: realpath on AIX

Jonathan Wakely <[email protected]>
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <CACb0b4mG9zgSZ-71aZZUme2oc_oU6UUrUwud7ZwBvPr3Rmz6uw@mail.gmail.com>
On Wed, 28 May 2025 at 21:39, Jonathan Wakely <[email protected]> wrote:
>
> I see that there was a report (and a workaround) for $(realpath foo//)

Oops, I meant to link to that:
https://lists.gnu.org/archive/html/bug-make/2019-09/msg00063.html


> on AIX, but AIX realpath has bigger problems. Paths containing //..
> will confuse AIX realpath causing it to return ENOENT, so Make's
> realpath function returns nothing, e.g. with GNU Make 4.4.1
>
> gcc119:~/tmp$ echo 'all: ; @echo ">>>" $(realpath
> /home/jwakely/tmp/../tmp)' | gmake -f-
> >>> /home/jwakely/tmp
> gcc119:~/tmp$ echo 'all: ; @echo ">>>" $(realpath
> /home/jwakely/tmp//../tmp)' | gmake -f-
> >>>
>
> I haven't been able to reproduce this with anything except "//.." but
> there might be other bugs with realpath on AIX.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.