You have been subscribed to a public bug: Per other bug, 'sh; syntax highlighting is actually for bash, as functions etc are not in Bourne shell (or Bash 3 when run in default POSIX mode).
Anyway, for bash - not Bourne shell - gedit's syntax highlighting cannot properly cope with arrays (which have been in bash for quite some time). The following simple array test, when pasted into gedit, breaks syntax highlighting, showing the rest of the file after looping through the array in grey. #!/bin/bash ## Declare array with 4 elements ARRAY=( 'Debian Linux' 'Red Hat Linux' 'Ubuntu Linux' ) ## get number of elements in the array [EMAIL PROTECTED] ## Loop through array, echoing each element ## syntax highligting breaks on next line for (( CURRENTELEMENT=0;CURRENTELEMENT<$ELEMENTS;CURRENTELEMENT++)); do echo ${ARRAY[${CURRENTELEMENT}]} done ** Affects: gedit (Ubuntu) Importance: Undecided Status: New -- bash syntax highlighting does not work with arrays https://bugs.launchpad.net/bugs/198636 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gedit in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs