Since dokuwiki version 2006-11-06 and newer, comments in bash syntax highlighting mode doesn't seem to be colored as comments any more.
There is a little demo at:
http://wiki.splitbrain.org/playground:bash_syntax_test
If inc/geshi/bash.php is replaced by the same file of an older dokuwiki version (pre 2006-11-06) everything works as expected.