passing a parenthesis character

2018-03-08 Thread Denis Valois
Hello m4 wizards, My problem is passing a single parenthesis as a macro argument.  I do not understand m4 behavior; this tells me that I miss some fundamentals. example 1:  notice the litteral `('     index(`abcdef', `(') this works perfectly with the expected results -1. example 2: use of a mac

Re: passing a parenthesis character

2018-03-08 Thread Eric Blake
On 03/08/2018 03:29 PM, Denis Valois wrote: Hello m4 wizards, My problem is passing a single parenthesis as a macro argument.  I do not understand m4 behavior; this tells me that I miss some fundamentals. example 1:  notice the litteral `('     index(`abcdef', `(') this works perfectly with th

Re: passing a parenthesis character

2018-03-08 Thread Denis Valois
Hello Eric, Many thanks for your explanation.  It makes sense and now the "defn" versus double quoting approaches are clear. Best regards, Denis/ On 03/08/2018 10:58 PM, Eric Blake wrote: > On 03/08/2018 03:29 PM, Denis Valois wrote: >> Hello m4 wizards, >> >> My problem is passing a single par