I usually run the freeplane (bin) files on linux debian (64bit) by extracting them and then running the script file (freeplane.sh) in the command line, without any problem, for example:
$ sh "/home/user/Downloads/freeplane-1.9.5/freeplane.sh"
but recently (starting from (1.9.5) or earlier (I'm not sure)), when I run the same command:
It fails to run and I get an error message:
$ sh "/home/user/Downloads/freeplane-1.9.5/freeplane.sh"
/home/user/Downloads/freeplane-1.9.5/freeplane.sh: 60: Syntax error: "&" unexpected
after this error, I checked the script file (freeplane.sh) and found the line of concern:
JAVA_VERSION=$(${JAVACMD} -version |& grep -E "[[:alnum:]]+ version" | awk '{print $3}' | tr -d '"')
Thanks
hello Milavon,
you have to run the script via bash ... or ./freeplane.sh. The script requires a bash
and /bin/sh is not a bash.
Best Regards,
Felix
yes, it worked
I realized that (sh) on the current system was not bash
Thanks