9 lines
175 B
Bash
9 lines
175 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# preserve old behavior of using an arg as a regex when '--' is not present
|
||
|
case $@ in
|
||
|
(*--*) ostestr $@;;
|
||
|
('') ostestr;;
|
||
|
(*) ostestr --regex "$@"
|
||
|
esac
|