Hello,

I try a simple macro that prepone a sharp (#) before names beginning with i or o and quoting other names :

define(`QuoteVariable', `ifelse(substr($1,0,1), i, #$1, ifelse(substr($1,0,1), o, #$1, "$1" ) ) ')

QuoteVariable(iTestI);
QuoteVariable(oTestO);
QuoteVariable(lTestL);

If I replace my sharps by A for example this works fine.

There I get the message:

m4: file "Test.m4": line 5: EOF in arg list


Is this a bug ? What can I do to get rid of this ?

--
Matthieu PUPAT
Digital Product Simulation
T�l�phone : +33 (0)5 62 12 03 88 (interne 7014)
Fax : +33 (0)5 62 12 03 89



_______________________________________________
Bug-m4 mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-m4

Reply via email to