Sample Header Ad - 728x90

How can I supress GNU dc warnings?

0 votes
1 answer
140 views
When some invalid or undefined commands are executed in dc, it usually just prints a warning. Example: cp dc: stack empty This is nice most of the time, however, there are cases where this is annoying as the desired action actually works. Consider this example: 5 6+sИlИp dc: 0230 unimplemented dc: 0230 unimplemented 11 See? Even if I try to use another register than those in the manual it still works. ("officially" 256, but how are you even supposed to use the NUL byte?) Even if perhaps not always a good idea, I would like dc to now show me such warnings in some scripts. How can I make dc not print warnings?
Asked by SE - stop firing the good guys (245 rep)
Apr 15, 2017, 04:57 PM
Last activity: Apr 15, 2017, 06:19 PM