]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/shift/bad.in
while $() is more modern than ``, it does not work with the
[mandoc.git] / regress / roff / shift / bad.in
1 .\" $OpenBSD: bad.in,v 1.1 2018/08/23 14:16:12 schwarze Exp $
2 .TH SHIFT_BAD 1 "August 23, 2018"
3 .SH NAME
4 .B shift-bad
5 \(en wrong usage of macro arguments
6 .SH DESCRIPTION
7 initial text
8 .de mym
9 in macro: "\\$1"
10 .PP
11 invalid argument number 'x': "\\$x"
12 ..
13 .PP
14 argument used before call: "\$1"
15 .shift
16 .PP
17 .mym argument
18 .PP
19 argument used after call: "\$1"
20 .shift 2
21 .PP
22 .de mym
23 .shift badarg
24 after shift badarg: "\\$1"
25 .shift 2
26 after excessive shift: \\n(.$ "\\$1"
27 ..
28 .mym arg1 arg2
29 .PP
30 final text