Re: m4 eats the word "include" from mon.m4?
On Thu, 19 Sep 2002 14:35:18 -0400 (EDT), "Ed Ravin" <[EMAIL PROTECTED]> said: > >-include=WAN [...] >-include=Serial10/4 [...] > I know "include" is special to m4, but why would it eat one of those > lines but not the other? For no good reason. With GNU m4 neither is eaten (it only treats it as include() if there are parens), but with both the dgux (SVR4) and Aix m4 they're both eaten. It would be nice to be able to specify switches for m4, so you could use GNU m4's --prefix-builtins. This would probably better be done with a switch which would let you specify the preprocessor as a sh command. -- Roderick Schertler [EMAIL PROTECTED] ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
m4 eats the word "include" from mon.m4?
In my mon.m4, I have a router monitoring script with an argument like this: -include=WAN Without any problems. Yesterday I added another invocation of that script with the argument: -include=Serial10/4 And much to my surprise, the script didn't run - it turns out that m4 was turning the second line into: -=Serial10/4 Since the script in question is using Perl's GetOpt::Long, which is case-insensitive with verbose options, I changed the line to: -Include=Serial/10/4 Which still worked for the script but didn't trigger m4's line eater. I know "include" is special to m4, but why would it eat one of those lines but not the other? ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon