aboutsummaryrefslogtreecommitdiffstats
path: root/examples/functions/kshenv
diff options
context:
space:
mode:
Diffstat (limited to 'examples/functions/kshenv')
-rw-r--r--examples/functions/kshenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/functions/kshenv b/examples/functions/kshenv
index 2b9a6eb..7594f2d 100644
--- a/examples/functions/kshenv
+++ b/examples/functions/kshenv
@@ -207,7 +207,7 @@ substring ()
;;
esac
# test for too few or too many arguments
- if [ x"$1" = x -o $# -gt 2 ]; then
+ if [ x"$1" = x ] || [ $# -gt 2 ]; then
print -u2 'substring: bad argument count'
return 1
fi