Skip to content

Convert posix scripts to bash #71932

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

script="$(dirname $0)"/src/bootstrap/configure.py

Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/disabled/dist-x86_64-haiku/llvm-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

case $1 in
--version) echo 4.0.1;;
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/dist-various-2/build-fuchsia-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rm -rf zircon
for arch in x86_64 aarch64; do
for tool in clang clang++; do
cat >/usr/local/bin/${arch}-fuchsia-${tool} <<EOF
#!/bin/sh
#!/bin/bash
${tool} --target=${arch}-fuchsia --sysroot=/usr/local/${arch}-fuchsia "\$@"
EOF
chmod +x /usr/local/bin/${arch}-fuchsia-${tool}
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/dist-various-2/build-wasi-toolchain.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# ignore-tidy-linelength

Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/scripts/android-start-emulator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

set -ex

Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/scripts/freebsd-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ set -x
for tool in clang clang++; do
tool_path=/usr/local/bin/${triple}-${tool}
cat > "$tool_path" <<EOF
#!/bin/sh
#!/bin/bash
exec $tool --sysroot=$sysroot --prefix=${sysroot}/bin "\$@" --target=$triple
EOF
chmod +x "$tool_path"
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/scripts/qemu-bare-bones-rcS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
mount -t proc none /proc
mount -t sysfs none /sys
/sbin/mdev -s
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/x86_64-gnu-tools/checktools.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

set -eu

Expand Down
2 changes: 1 addition & 1 deletion src/etc/cat-and-grep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -eu

# Performs `cat` and `grep` simultaneously for `run-make` tests in the Rust CI.
Expand Down
2 changes: 1 addition & 1 deletion src/etc/installer/pkg/postinstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

source_dir="$(dirname "$0")"
dest_dir="$2"
Expand Down
2 changes: 1 addition & 1 deletion src/etc/rust-gdb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Exit if anything fails
set -e

Expand Down
2 changes: 1 addition & 1 deletion src/etc/rust-gdbgui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Exit if anything fails
set -e
Expand Down
2 changes: 1 addition & 1 deletion src/etc/rust-lldb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Exit if anything fails
set -e
Expand Down
2 changes: 1 addition & 1 deletion src/tools/linkchecker/linkcheck.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# This is a script that can be used in each book's CI to validate links using
# the same tool as rust-lang/rust.
Expand Down