Annotation of mandoc/regress/roff/shift/bad.in, Revision 1.2
1.2 ! schwarze 1: .\" $OpenBSD: bad.in,v 1.2 2022/04/24 13:34:53 schwarze Exp $
! 2: .TH SHIFT_BAD 1 "April 24, 2022"
1.1 schwarze 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"
1.2 ! schwarze 25: .br
! 26: .shift -1
! 27: after shift \-1: "\\$1"
! 28: .br
1.1 schwarze 29: .shift 2
30: after excessive shift: \\n(.$ "\\$1"
31: ..
32: .mym arg1 arg2
33: .PP
34: final text
CVSweb