diff options
Diffstat (limited to 'examples/functions/getoptx.bash')
-rw-r--r-- | examples/functions/getoptx.bash | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/functions/getoptx.bash b/examples/functions/getoptx.bash index 23e5de5..d402c7d 100644 --- a/examples/functions/getoptx.bash +++ b/examples/functions/getoptx.bash @@ -134,7 +134,7 @@ function getoptex() let OPTIND || OPTIND=1 [ $OPTIND -lt $# ] || return 1 shift $OPTIND - if [ "$1" != "-" -a "$1" != "${1#-}" ] + if [ "$1" != "-" ] && [ "$1" != "${1#-}" ] then OPTIND=$[OPTIND+1]; if [ "$1" != "--" ] then local o @@ -299,4 +299,3 @@ function getopt() #************************************** #*** (end of getopt2) *** - |