Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad substitution when CONFIG_SHELL=/bin/dash #499

Open
Alessandro-Barbieri opened this issue Apr 7, 2022 · 0 comments
Open

Bad substitution when CONFIG_SHELL=/bin/dash #499

Alessandro-Barbieri opened this issue Apr 7, 2022 · 0 comments

Comments

@Alessandro-Barbieri
Copy link
Contributor

If you set a POSIX shell CONFIG_SHELL=/bin/dash and then configure, it will fail with
checking for pkg-conf ruby-3.1 var ruby_version... ./configure: 3751: Bad substitution

relevant piece of configure

if test "x$RUBY_VER" = x""
then :

fi
          if test "x$RUBY_VER" = x""
then :
  if test "x$default" = x""
then :
  as_fn_error $? "not found" "$LINENO" 5
else $as_nop
  eval $varname=\$default && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using default ${!varname}" >&5
printf "%s\n" "not found, using default ${!varname}" >&6; }
fi
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (detected: ${!varname})" >&5
printf "%s\n" "yes (detected: ${!varname})" >&6; }
fi

${!varname} is a bashism

see also https://mywiki.wooledge.org/Bashism

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant