diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-04-09 02:31:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-04-09 02:31:42 +0000 |
commit | 43019a63ee4e47bd3e1e331d85934b3f4d19ba93 (patch) | |
tree | be2b12395725aff42c79f3567d21a87df2b69a29 /regress/roff/string/undef.out_ascii | |
parent | 8e073d5e3b099f862d87a6d024fa81a536d2ff9d (diff) | |
download | mandoc-43019a63ee4e47bd3e1e331d85934b3f4d19ba93.tar.gz |
Using an undefined string or macro will cause it to be defined as empty.
Observed by Werner Lemberg on Nov 14, 2011
and rotting on my TODO list ever since.
Diffstat (limited to 'regress/roff/string/undef.out_ascii')
-rw-r--r-- | regress/roff/string/undef.out_ascii | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/regress/roff/string/undef.out_ascii b/regress/roff/string/undef.out_ascii new file mode 100644 index 00000000..6e7bd01f --- /dev/null +++ b/regress/roff/string/undef.out_ascii @@ -0,0 +1,37 @@ +STRING-UNDEF(1) General Commands Manual STRING-UNDEF(1) + + + +NNAAMMEE + string-undef - expanding undefined strings + +DDEESSCCRRIIPPTTIIOONN + UUsseerr ddeeffiinneedd ssttrriinngg + The sting "mys" is undefined and remains undefined. + + Its value is "", and now it is defined, and its value is still "". + + After redefining it to "newval", it is of course still defined. + + After removing the definition, it is now undefined. + + UUsseerr ddeeffiinneedd mmaaccrroo + The macro "mym" is undefined. + + It has no effect: But now it is defined. + + After defining it as: neweffect it is of course still defined. + + After removing the definition, it is now undefined. + + RReennaammeedd mmaaccrroo + The standard .BR macro is defined, and it wwoorrkkss. + + After renaming it, the new name is defined, and wwoorrkkss. + + PPrreeddeeffiinneedd ssttrriinngg + A predefined string is defined and has the value "(R)". + + + +OpenBSD April 9, 2018 STRING-UNDEF(1) |