diff --git a/scripts/ybcon b/scripts/ybcon index 9b21044..86a6ee8 100755 --- a/scripts/ybcon +++ b/scripts/ybcon @@ -49,13 +49,13 @@ if [ "$#" != 0 ]; then do case "$it" in -p | --printresult | --parallel | --target=* | --newlines=on | --newlines=off ) - if test "${arguments#*$it}" != "$arguments"; then + if [ "${arguments#*$it}" != "$arguments" ] && [ "${arguments%*-$it}" = "${arguments#*-$it}" ]; then usageExit fi ;; -t | --text ) text_provided=true ;; * ) - if [ $text_provided = true ] || test "${it%*.ybcon}" != "$it"; then + if [ $text_provided = true ] || [ "${it%*.ybcon}" != "$it" ]; then run=true else usageExit