On Thu, Jun 30, 2011 at 06:15:23AM +0200, Florian Pritz wrote:
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index c988554..b7246f1 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1134,7 +1134,7 @@ create_package() { # check for changelog/install files for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do - IFS='/' read -r orig dest <<< "$i" + IFS='/' read -r orig dest < <(printf '%s\n' "$i") if [[ -n ${!orig} ]]; then msg2 "$(gettext "Adding %s file...")" "$orig" -- 1.7.6
I think adding set ft=bash to the modeline should be enough, but I can't test that right now.
Would be lovely if such a thing existed. vim uses a singular ft=sh and detects further capabilities based on the shebang. It's not an exact science and the syntax file doesn't have support for some the newer bash4 features, such as ${var,,} or ${var^^}. Still, here strings are old (2.0.5), so I'm not sure why this breaks it. d