BashSupport plugin, 1.6.10.171, doesn't know how to handle basic syntax in functions

Answered

Hi,

The following function is perfectly legal in Bash 4.1.2 but it breaks on the plugin:

1  #!/bin/bash

2   function breakBashPlugin {
3   local dryrun="$1"
4   local rstatus=0
5   if [ -z "$dryrun" ]; then
6   echo "Silly statement!"
7   ((rstatus=rstatus=$?))
8   else
9   echo "Another silly statement"
10 fi
11 return $rstatus
12 }

  1. On lines 4,6: Unexpected token
  2.  On lines 9, 10: Expected a command

Any idea what you can tweak to make this errors dissapear?

Thanks!

 

 

 

 

0
2 comments
Avatar
Permanently deleted user

Thanks!

0

Please sign in to leave a comment.