Comments (6)
Thanks for reporting! I'm all for accepting a PR switching to
[[ str != pattern ]]
if bash 5.3 is already widely distributed and if it will take a while for the patch to roll out to package managers. But it's good to know this has been fixed.
Well Bash 5.3 is still in alpha stage so you don't have to worry. It's basically a use at your own risk version. In Gentoo for example, it doesn't even have a keyword. I OTOH prefer to install it (and sometimes the devel branch version) so I can find issues like this.
from ruby-build.
Everything after #
gets stripped from package_url a few lines above the line you've linked:
Lines 468 to 470 in 0aefaa4
from ruby-build.
Seems like this no longer works in Bash 5.3: ${package_url/\#}
from ruby-build.
I sent a bug report to bug-bash but maybe these issues can be avoided by using [[ $str != pattern ]]
. There's no reason to make it POSIX compatible.
from ruby-build.
Bash devel branch has fixed the issue and I just tested ruby-build works again so I'm closing this now, thanks.
from ruby-build.
Thanks for reporting! I'm all for accepting a PR switching to [[ str != pattern ]]
if bash 5.3 is already widely distributed and if it will take a while for the patch to roll out to package managers. But it's good to know this has been fixed.
Semi-related: something that I found out (in a different repo) the hard way is that newer versions of bash expand the ~
as a pathname in the expression ${str/pattern/~}
, while bash 3.2 interprets it as a literal. For newer versions of bash, the solution is to backslash-escape the ~
sign, but in bash 3.2 the replacement would result in a literal \~
. I couldn't find a way to make it work across bash versions, so I just rewrote the expression using different string replacement methods.
from ruby-build.
Related Issues (20)
- ruby-build -l yields different output from rbenv install --list HOT 5
- install command prompts in non-interactive shell HOT 1
- Can we skip installing readline when Ruby version is greater than 3.3.0? HOT 3
- Giving multiple optflags raises unrecognized option error. HOT 3
- Cannot install Ruby versions 2.6 using asdf
- can't install 3.2.3 ruby version from rbenv
- ruby-build: definition not found: 3.3.0.rc1 HOT 3
- Wiki open to edits HOT 2
- Ruby 2.2.10 install fails due to OpenSSL issue HOT 3
- RUBY_BUILD_MIRROR_URL ignored HOT 7
- Can't upgrade above 20211019 via brew on macos HOT 3
- 3.3.1 fails to build YJIT with Homebrew LLVM 18 HOT 7
- RUBY_BUILD_ROOT docs misleading
- On Ubuntu 24.04 the launch of Ruby built using ruby-build is noticeably slower HOT 4
- Build failure of Ruby 3.3.1 and 3.3.2 on systems without [email protected] HOT 3
- CONFIGURE_OPTS='--disable-install-doc' is passed to the openssl build which fails HOT 1
- trying to install ruby 2.7.0 HOT 1
- Enable YJIT Seems to not support arm64 HOT 1
- Issues with installing ruby 3.3.4 on mac HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-build.