Actions
Bug #10750
closedconfigure script has bashism on Ruby 2.2.0
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-netbsd]
Description
On Ruby 2.2.0, configure script has bashism part and it cause syntax error:
./configure: 21262: Syntax error: Bad substitution
The problem line:
test "x${linker_flag}" = x || flag="${linker_flag}${flag// /,}"
${flag// /}
is not portable syntax but bash specific syntax.
The problem dose happens on NetBSD 7.0_BETA and current (7.99.4), but not on NetBSD 6.1_STABLE.
So, it might be some bug or syntax change on NetBSD.
Anyway, I do not think it is good idea to use none portable shell syntax.
Files
Actions
Like0
Like0Like0