| 1 | #!/bin/sh |
| 2 | . test/lib.sh |
| 3 | |
| 4 | begin "Substitute ~ with \(ti" |
| 5 | scdoc <<EOF | grep '\\fIhello\\(ti\\fR' >/dev/null |
| 6 | test(8) |
| 7 | |
| 8 | _hello~_ |
| 9 | EOF |
| 10 | end 0 |
| 11 | |
| 12 | begin "Substitute ^ with \(ha" |
| 13 | scdoc <<EOF | grep '\\fIhello\\(ha\\fR' >/dev/null |
| 14 | test(8) |
| 15 | |
| 16 | _hello^_ |
| 17 | EOF |
| 18 | end 0 |
| 19 | |
| 20 | begin "Substitute - with \\-" |
| 21 | scdoc <<EOF | grep 'hello \\-\\-world \\-1 long\\-term' >/dev/null |
| 22 | test(8) |
| 23 | |
| 24 | hello --world -1 long-term |
| 25 | EOF |
| 26 | end 0 |