FPC 3.2.0 install.sh contains invalid syntax
Original Reporter info from Mantis: zamronypj @zamronypj
-
Reporter name: Zamrony P. Juhara
Original Reporter info from Mantis: zamronypj @zamronypj
- Reporter name: Zamrony P. Juhara
Description:
install.sh from fpc-3.2.0.x86_64-freebsd11.tar contains invalid syntax which prevent installation to continue in Free BSD 12.1
- First issue
on line 50
if [ "{tar_version//GNU/}" != "
{tar_version}" ] ; then
This cause bad substitution error
# sh install.sh
install.sh: ${tar_version/...}: Bad substitution
Should it be
if [ "{tar_version}//GNU/" != "
{tar_version}" ] ; then
- Second issue
on line 389
function subtitute_version_string ()
cause error
install.sh: 389: Syntax error: "(" unexpected
sh does not understand function
if function keyword is removed
subtitute_version_string ()
it worked.
Additional information:
This is fresh minimal FreeBSD installation
Mantis conversion info:
- Mantis ID: 37232
- OS: FreeBSD
- OS Build: 12.1-RELEASE-p5
- Build: 3.2.0 [2020/06/14] for x86_64
- Platform: X86_64