Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Can't suppress MAPM warnings

May
12,846
164
I can't suppress MAPM warnings (and I'd like to).
Code:
p:\mapm> echo %@eval[acos(2)] 2>NUL
MAPM Warning: 'm_apm_arccos', |Argument| > 1
0

That particular message ("Warning") only comes from one place.
Code:
p:\mapm> grep Warning: *.c
MAPMUTL1.C:    fprintf(stderr, "MAPM Warning: %s\n", message);

I suspect a change (to something more redirection-friendly) would allow the user to get rid of them.
 
WAD - variables & variable functions are evaluated before redirection. (And you really, really wouldn't want me to change that ...)
Yup. I see what you mean. (And no, I wouldn't.)
 
I can't suppress MAPM warnings (and I'd like to).
Code:
p:\mapm> echo %@eval[acos(2)] 2>NUL
MAPM Warning: 'm_apm_arccos', |Argument| > 1
0

Have you tried the parentheses thing?
Code:
( echo %@eval[acos(2)] ) 2>NUL
 
Sorry; I know that "parentheses thing" is not the correct technical locution. I just like giving pat answers.
 
Back
Top