From 19229aa8fcb420d16fa5023a4e4b481da6e61699 Mon Sep 17 00:00:00 2001 From: William Michaels Date: Thu, 30 Apr 2020 13:33:49 -0500 Subject: [PATCH] bugfix off by one error --- semtag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semtag b/semtag index 96ed21a..1f08a6e 100755 --- a/semtag +++ b/semtag @@ -248,7 +248,7 @@ function compare_identifiers { firstsize=${#explodedidentifierfirst[@]} secondsize=${#explodedidentifiersecond[@]} minlength=$(( $firstsize<$secondsize ? $firstsize : $secondsize )) - for (( i = 1 ; i < $minlength ; i++ )); do + for (( i = 0 ; i < $minlength ; i++ )); do compare_identifier_part "${explodedidentifierfirst[$i]}" "${explodedidentifiersecond[$i]}" partresult case $partresult in 0)