]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/shift/basic.in
while $() is more modern than ``, it does not work with the
[mandoc.git] / regress / roff / shift / basic.in
1 .\" $OpenBSD: basic.in,v 1.1 2018/08/23 14:16:12 schwarze Exp $
2 .TH SHIFT_BASIC 1 "August 23, 2018"
3 .SH NAME
4 .B shift-basic
5 \(en the shift request
6 .SH DESCRIPTION
7 .de showargs
8 original arguments:
9 .BI \\$@
10 .PP
11 .shift 2
12 after shift 2:
13 .BI \\$@
14 .PP
15 .shift
16 after shift without argument:
17 .BI \\$@
18 .PP
19 .shift 0
20 after shift 0:
21 .BI \\$@
22 ..
23 .de useargs
24 <\\$*>
25 ..
26 .showargs one two three four five
27 .PP
28 expand to less than three bytes:
29 .useargs 1
30 .PP
31 expand to exactly three bytes:
32 .useargs x y
33 .PP
34 expand to more than three bytes:
35 .useargs "a longer argument..." "and another"