File: comments

package info (click to toggle)
scdoc 1.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 212 kB
  • sloc: ansic: 1,043; sh: 340; makefile: 58
file content (22 lines) | stat: -rwxr-xr-x 270 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
. test/lib.sh

begin "Ignore comments"
scdoc <<EOF | grep "this is a comment" >/dev/null
test(8)

; this is a comment

Hello world!
EOF
end 1

begin "Fail on invalid comments"
scdoc <<EOF >/dev/null
test(8)

;this is an invalid comment

Hello world!
EOF
end 1