This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In the sh statements : ${NAME#*_} : ${NAME##*_} the part after NAME is highlighted as a comment. It looks as if the # character is incorrectly interpreted as start of a comment.
fixed, change set: https://hg.netbeans.org/cnd-main/rev/b282b5cfeca6