diff options
Diffstat (limited to 'examples/functions/substr')
-rw-r--r-- | examples/functions/substr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/functions/substr b/examples/functions/substr index c557677..a80b3b4 100644 --- a/examples/functions/substr +++ b/examples/functions/substr @@ -30,7 +30,7 @@ substr() ;; esac - if [ "$#" -eq 0 -o "$#" -gt 2 ] ; then + if [ "$#" -eq 0 ] || [ "$#" -gt 2 ] ; then echo "substr: bad argument count" return 2 fi |