fix the -x documentation
This commit is contained in:
parent
292663dd73
commit
2ab070c353
@ -139,7 +139,7 @@ To test with multiple shells in sequence, use something like:
|
||||
done
|
||||
|
||||
#### (c) Cross shell tests with `urchin -x` (experimental)
|
||||
If you run urchin with the `-sh` flag, it will be as if you ran
|
||||
If you run urchin with the `-x` flag, it will be as if you ran
|
||||
`$TEST_SHELL`. Unless `$TEST_SHELL` isn't set, in which case it'll
|
||||
be as if you ran `/bin/sh`. Putting this in she shebang line might
|
||||
eventually work out to be a cleaner way of doing cross-shell testing.
|
||||
@ -147,6 +147,11 @@ eventually work out to be a cleaner way of doing cross-shell testing.
|
||||
#!/usr/bin/env urchin -x
|
||||
test a = a
|
||||
|
||||
It might make sense if you do this.
|
||||
|
||||
export TEST_SHELL=zsh && urchin -x
|
||||
export TEST_SHELL=bash && urchin -x
|
||||
|
||||
## Alternatives to Urchin
|
||||
Alternatives to Urchin are discussed in
|
||||
[this blog post](https://blog.scraperwiki.com/2012/12/how-to-test-shell-scripts/).
|
||||
|
Loading…
Reference in New Issue
Block a user