repo.or.cz
/
quincer.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix an issue where the pattern doesn't advance,
[quincer.git]
/
test
/
04pattern.test
blob
3c6af08323476f683aeeb8db7a042355449676ec
1
#!/bin/sh
2
set -x
3
input
=
$
(
mktemp
)
4
output
=
$
(
mktemp
)
5
6
die
() {
7
rm
-f
$input $output
8
exit
1
9
}
10
11
cat
>
$input
<<EOF
12
pattern 144 #cool pattern
13
EOF
14
15
.
/
lexdump
$input
>
$output
16
[
$?
=
0
]
|| die
17
18
grep
pattern
$output
|| die
19
grep
144
$output
|| die
20
grep
absolute
$output
|| die
21
22
rm
-f
$input $output