diff --git a/.gitignore b/.gitignore index 30953ed..d58fae1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.o test +!test/ .ninja_deps .ninja_log diff --git a/README.md b/README.md index ed5e7ca..fecefd4 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,7 @@ It is required that one file in your project defines the as with any other single-header library. An example for how to use readarg can be found in `test/test.c`. If you want to -see how readarg represents options and operands, execute `test.sh` in the same -directory. +see how readarg represents options and operands, run `test.bash`. ## Terminology diff --git a/test/test.sh b/test/test.bash similarity index 79% rename from test/test.sh rename to test/test.bash index fa50619..85a03b4 100755 --- a/test/test.sh +++ b/test/test.bash @@ -1,4 +1,7 @@ -#!/bin/sh +#!/usr/bin/env bash + +cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null + ./test \ -e a \ --expr b \