summaryrefslogtreecommitdiffstats
path: root/regress/roff/args/roff.in
blob: 297391a9b9bae3001e20b5ce6dc85ebdf8c6e4f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.\" $OpenBSD: roff.in,v 1.6 2018/08/19 23:55:40 schwarze Exp $
.TH ARGS-ROFF 1 "February 21, 2015"
.SH NAME
args-roff - arguments to roff macros
.SH DESCRIPTION
.de test
.BI (\\$1) "(\\$2)"
.br
..
arguments containing quotes:
.test a"b a"b
.de test
(\\$1) (\\$2)
.br
..
standard unquoted:
.test one two
escaped blanks:
.test one\ one two\ two
escaped 'e' character:
.test one\eone two
.\" escaped backslash before blank:  --  broken for unknown reasons
.\" .test one\\ two
escaped backslash before 'e' character:
.test one\\e two
double inter-argument space:
.test one  two
triple inter-argument space:
.test one   two
single eol blank:
.test one two 
double eol blank:
.test one two  
triple eol blank:
.test one two   
standard quoted:
.test "one" "two"
quoted quotes:
.test "one""one" """two"""
quoted whitespace:
.test "one one" "two two"
escaped 'e' characters:
.test "one \e one" "\e"
escaped backslash before blank:
.test "one\\ one" "\\ "
escaped backslash before 'e' character:
.test "one\\eone" "\\e"
double inter-argument space:
.test "one one"  "two two"
triple inter-argument space:
.test "one one"   "two two"
missing inter-argument space:
.test "one one"two\ two
single eol blank:
.test "one one" "two two" 
double eol blank:
.test "one one" "two two"  
triple eol blank:
.test "one one" "two two"   
trailing blanks in arguments:
.test "one " "two "
unterminated quotes:
.test "one
.test one "two
single trailing blank in unterminated quotes:
.test "one 
.test one "two 
double trailing blank in unterminated quotes:
.test "one  
.test one "two  
backslash at eol:
.test one two\