Wrong syntax highlighting when editing this bash script
#!/bin/bash
while test $(( << $(($class)) )) -le $(($nr>>1)); do
class=$(($class+1))
done
bla=$(($nr - $(( 1 << $(($class)) )) ))
test "$bla" -eq '0' && echo $(($class+1)) || rec "$bla"
joe can not deal with '<<', '>>' is working though.
FYI: jupp editor displays it correct
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698077 is related.
sh.jsf just doesn't handle
$(…),$((…))etc. well, and there's at least one off-by-one colouring bug which doesn't show up with default colours. The other fun bit there is that the 'here' doc which would otherwise be introduced by that<<is handled correctly…There are related problems too with
[ … ]and[[…]].