-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Convert all sh
scripts to bash
scripts
#31036
Comments
cc @rust-lang/tools |
The obvious place I can imagine this matter is installing rustc on busybox platforms, perhaps Android based. |
For what it's worth, I've been playing with getting rust installed on non-standard platforms like aboriginal Linux and unrooted android recently and I can confirm that this is one of the biggest issues. That said, the script itself is not perfectly compatible with busybox bash, which would be good to fix :) |
I'm fine with this 👍 |
I was poking around in FreeBSD and OpenBSD recently and it looks like neither have bash installed by default, but both have bash packages (just a point of note) |
@wycats That sounds like a vote for sticking with |
@brson I think so yes. |
I wonder if we can do something like |
Just found this thread and I've got a quick observation on There's two variants of I, and a number of others in the devops space are moving off bash because of its code smells, bug history and brittleness. There have been just too many problems over the years. And it's not commonly installed on non-Linux setups, etc. I'd strongly suggest writing scripts and testing with |
@brson Do we want to go with the |
Nominating for infra team so we can come to a decision on this. |
Discussed in meeting: We want to survey the current state of the world to know what's still written in shell, and come to decisions based on what it is how much of it needs to be in shell. Marking as help wanted, if you want to look across rust-lang/cargo, rust-lang/rust-installer, rust-lang/rust and find shell scripts and note them here, please do so. cc @alexcrichton -- feel free to edit with additional repos. |
@Mark-Simulacrum |
There are 48 shell scripts, but most of them are under
|
@rustbot claim |
Triage: There's no active interest since #71932 was closed. Could we close this issue for now? |
@JohnTitor Yes please! |
Okay, I'm going to close this but feel free to re-open if someone has an interest. |
We've long stuck to posix shell for our bash scripts with the rationale that posix shell is the most compatible. Sometimes this has been painful. Most recently, IllumOS doesn't have a working posix shell, but it does have bash. Conversely, I have no real-world examples of platforms people are using Rust on that only have
sh
.I'm near the breaking point of my sympathy for
sh
now.This must be done in-tree, as well as in rustup.sh and rust-installer.
This issue has been assigned to @Daniel-Worrall via this comment.
The text was updated successfully, but these errors were encountered: