This syntax used to be marked as deprecated [1]. In current bash
man pages, it isn't even mentioned any more. Use the POSIX compatible
syntax "$((X+=1))" instead [2, 3].
[1] https://stackoverflow.com/questions/
41081417/difference-between-a-b-and-a-b-in-bash
[2] https://pubs.opengroup.org/onlinepubs/
9699919799/utilities/V3_chap02.html#tag_18_06_04
[3] https://pubs.opengroup.org/onlinepubs/
9699919799/utilities/V3_chap01.html#tag_17_01_02_01
Signed-off-by: Martin Wilck <mwilck@suse.com>
logger -p daemon.info mdcheck continue checking $dev from $start
fi
- cnt=$[cnt+1]
+ : "$((cnt+=1))"
eval MD_${cnt}_fl=\$fl
eval MD_${cnt}_sys=\$sys
eval MD_${cnt}_dev=\$dev