From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020809 Description of problem: When editing a bash script with vim, if there is a statement like: variable=$(/bin/date) then the $( and the ) get highlighted like they are errors, even though they aren't. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Open a bash script with vim. 2.Add a statement using the $( and ) 3. Actual Results: The $( and ) are highlighted as though they are errors. Expected Results: Same as the actual results. Additional info:
Please change the first line of your shell script to '!#/bin/bash' instead of '!#/bin/sh'. /bin/sh is a link and can point to any shell which might not support the $(xxxx) command syntax. That's why vim shows this as an error.
My scripts already say #!/bin/bash at the top.
Oh ;-( Well, it works with my version here which is the one from Rawhide. Please try the one from ftp://ftp.redhat.com/pub/redhat/linux/rawhide/