I'd like to get the 'sh' filetype syntax highlighting working on FreeBSD. The following (supported) constructs, for example, show as errors.
-------------------------------------------------- #!/bin/sh # Parameter Expansion: SCRIPTNAME=${0##*/} # Command Substitution: COMMAND=$(echo 'What is the meaning of life?') # Arithmetic Expansion: ANSWER=$((6 * 9)) -------------------------------------------------- I'm sure the subject is more involved than I'd prefer, so if the above isn't possible, I'd settle for a workaround that implements bash-style highlighting for a #!/bin/sh shebang. Background reading for those interested: DESCRIPTION The sh utility is the standard command interpreter for the system. The current version of sh is in the process of being changed to conform with the IEEE Std 1003.2 (``POSIX.2'') specification for the shell. This ver- sion has many features which make it appear similar in some respects to the Korn shell, but it is not a Korn shell clone like pdksh. Only fea- tures designated by POSIX, plus a few Berkeley extensions, are being incorporated into this shell. This man page is not intended to be a tutorial nor a complete specification of the shell. Comments, questions, complaints all welcomed. -- George