Re: strange --version issue

John Calcote <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
Here's some more data on the m4 --version issue.

$ *m4 --version*
*GNU M4 1.4.4*
Written by Rene' Seindal.
...

$ *strace m4 --version*
execve("/usr/local/bin/m4", ["m4", "--version"], [/* 68 vars */]) = 0
...
write(1, "GNU M4 1.4.5\n", 13*GNU M4 1.4.5*
)          = 13
write(1, "Written by Rene\' Seindal.\n\nCopyr"..., 152Written by Rene' 
Seindal.
...

Running "m4 --version" alone appears to execute the one in /usr/bin 
(1.4.4), while executing under strace seems to run the correct one in 
/usr/local/bin (1.4.5).

Again, I'm wondering...

John

John Calcote wrote:
> Can someone please tell me what the heck is going on here:
>
> $ echo $PATH
> ...:/usr/local/bin:/usr/bin:...
> $ ls -al /usr/bin/m4
> -rwxr-xr-x 1 root root 60768 2006-06-16 07:39 /usr/bin/m4
> $ ls -al /usr/local/bin/m4
> -rwxr-xr-x 1 root root 179252 2008-04-09 08:46 /usr/local/bin/m4
> $ which m4
> /usr/local/bin/m4
> $ /usr/bin/m4 --version
> GNU M4 1.4.4
> Written by Rene' Seindal.
> ...
> $ /usr/local/bin/m4 --version
> GNU M4 1.4.5
> Written by Rene' Seindal.
> ...
> $ m4 --version
> GNU M4 1.4.4
> Written by Rene' Seindal.
> ...
>
> I'm sure this is not really an m4 question, but I'm totally stumped - 
> /usr/local/bin comes first in my PATH, yet when I execute "m4 
> --version" I seem to be picking up the 1.4.4 version in my /usr/bin 
> directory. What gives?
>
> John
>
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.