Imported from ../bash-3.0.tar.gz.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user