| #! /bin/sh |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| . "${srcdir=.}/init.sh"; path_prepend_ . |
| fail=0 |
| |
| |
| |
| cat > in <<EOT |
| foo* |
| bar |
| Baz |
| EOT |
| |
| cat > expected <<EOT |
| foo: 0 |
| foo*: 1 |
| bar: 1 |
| foobar: 0 |
| baz: 0 |
| bar/qux: 0 |
| EOT |
| |
| test-exclude in -- foo 'foo*' bar foobar baz bar/qux > out || exit $? |
| |
| |
| |
| case $(echo r | tr -d '\r') in '') cr='\015';; *) cr='\r';; esac |
| |
| |
| LC_ALL=C tr -d "$cr" < out > k && mv k out |
| |
| compare expected out || fail=1 |
| |
| Exit $fail |