Commit 951dbc3b7f58c4718514650130fbe7c543b68e4d
Committed by
Jay Berkenbilt
1 parent
3c1555a6
Fix expr syntax, support spaces in paths
expr needs ARG + ARG quote paths to support support spaces
Showing
2 changed files
with
4 additions
and
4 deletions
qpdf/qtest/qpdf/diff-encrypted
| 1 | 1 | #!/bin/sh |
| 2 | -lines=$(expr + $(diff $1 $2 | egrep '^[<>]' | egrep -v '(Date|InstanceID)' | wc -l)) | |
| 2 | +lines=$(expr 0 + $(diff "$1" "$2" | egrep '^[<>]' | egrep -v '(Date|InstanceID)' | wc -l)) | |
| 3 | 3 | if [ "$lines" = "0" ]; then |
| 4 | 4 | echo okay |
| 5 | 5 | else |
| 6 | - diff -a -U 0 $1 $2 | |
| 6 | + diff -a -U 0 "$1" "$2" | |
| 7 | 7 | fi | ... | ... |
qpdf/qtest/qpdf/diff-ignore-ID-version