cancel
Showing results for 
Search instead for 
Did you mean: 

About M4

SOLVED
Go to solution

About M4

Hi all,

which command we can get version of M4 in Unix.

Thanks in Advance
Regards,
Subrat
11 REPLIES
Peter Godron
Honored Contributor

Re: About M4

Subrat,
have you tried:
what `which m4`

Re: About M4

Hi,

I have tried with --
>m4 version

Regards,
Subrat
Peter Godron
Honored Contributor

Re: About M4

Hi,
I don't understand your reply. Can you please explain ? Or perhaps I am mis-understanding the original question.

Please see Steven's last answer in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1045822

Re: About M4

Hi peter,

only i want to know which m4 version is installed in my UNIX.

So which command is used for same.


Regards,
Subrat
Peter Godron
Honored Contributor
Solution

Re: About M4

Subrat,
please type the command:
which m4
This will return the location of the m4 you are using (as specified via your PATH variable)
Lets assume the above command returns /usr/local/bin/m4.

If you now use the command:
what /usr/local/bin/m4

It should give you the version of file you are using.

If these answers have helped, please dont forget:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.


A. Clay Stephenson
Acclaimed Contributor

Re: About M4

There is no --version option for HP's m4. The source code for most versions of m4 on UNIX boxes (as opposed to Linux boxes) probably hasn't been touched in decades.

If you need special m4 features then try the Gnu version:
http://hpux.its.tudelft.nl/hppd/hpux/Languages/m4-1.4.8/
If it ain't broke, I can fix that.

Re: About M4

Thanks...
A. Clay Stephenson
Acclaimed Contributor

Re: About M4

The output of the what command is meaningless in this context. What is used in conjunction with the SCCS (Source Code Control System) and is used to get the revisions (delta's) of source files. On any other files (like binaries) is reports any strings following "@(#)" and a common matching string is "Revision" but this has absolutely nothing to do with a program version.
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: About M4

>Clay: The output of the what command is meaningless in this context.

Did you try it on /usr/bin/m4?
While not too helpful, it would indicate the OS or patch version:
$Revision: B11.23_LR

(I got nothing for /usr/local/bin/m4.)

Re: About M4

Hi Dennis,

Yes,I got $Revision: B11.23_LR for â whatâ command for m4.
I was confused about this.
Any idea how to get version for m4.

Regards,
Subrat
Dennis Handly
Acclaimed Contributor

Re: About M4

>Any idea how to get version for m4.

The comments indicate it was developed by HP. So there is no likely version number, especially matching GNU.

m4 does meet UNIX 95.