Fixed #23! Replaced substring with more robust approach.

This commit is contained in:
Marcus Whybrow 2012-06-18 10:15:28 +01:00
parent 9d8268b66e
commit a08b439580

View File

@ -2289,7 +2289,7 @@ register_command() {
done
if [ ${#regex} -ge 1 ]; then
regex="${regex:0:(-1)}\$"
regex="${regex:0:${#regex}-1}\$"
# Sets the global command varibales in order to register this command
COMMAND_SIGNATURE[$COMMAND_COUNT]="$1"