ueokande / bashvm Goto Github PK
View Code? Open in Web Editor NEWBash Version Manager
License: MIT License
Bash Version Manager
License: MIT License
Thanks for this. I was recently lamenting the lack of anything like this tool.
Line 28 in 1b020ea
This is dangerous.
$builddir
isn't quoted, chaos will ensue if this ever becomes subject to word splitting for any reason. C.f.: bumblebeeeset -u
, who knows what will happen if the variable is unset when we get to this point? C.f.: steam-for-linux and shellcheck (I'm not really recommending set -u
btw)rm
is called, leading to some kind of apocalypse probably.You may think that the code as-written can't be subject to such problems. But a future refactoring elsewhere could render this unsafe.
If you agree I can send a PR adding some safety catches. What do you think?
It works fine locally, but an error occurs when running it from GitHub Actions:
$ git clone https://github.com/ueokande/bashvm $HOME/.bashvm
$ source $HOME/.bashvm/bin/bashvm-init
$ bashvm use --install 5
Fetching bash-5...
#=#=#
##O#- #
##O=# #
#=#=-# #
-#O#- # #
curl: (78) RETR response: 550
$ bashvm use 4.0 --install
$ echo $BASH_VERSION
5.1.4(1)-release
$ LANG=C bash --version|sed -nr '1s/^.*, version (.*) .*/\1/p'
4.0.0(1)-release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.