Skip to content

test/orfs: use /usr/bin/env bash in check_same.sh shebang#10320

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:nix-shebang-check-same
May 4, 2026
Merged

test/orfs: use /usr/bin/env bash in check_same.sh shebang#10320
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:nix-shebang-check-same

Conversation

@oharboe

@oharboe oharboe commented May 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace hard-coded #!/bin/bash with #!/usr/bin/env bash in test/orfs/check_same.sh.
  • /bin/bash is not a guaranteed location (e.g. NixOS does not ship it there); /usr/bin/env bash works on NixOS as well as conventional FHS distros.

I also did a sweep of the rest of the .sh files in the tree — check_same.sh is the only one that hard-codes /bin/bash. The remaining shebangs are /usr/bin/env bash or /bin/sh (POSIX-required, present on NixOS).

Spotted in #10237 (comment).

Test plan

  • CI green

/bin/bash is not a guaranteed location (e.g. NixOS does not provide it);
use /usr/bin/env bash for portability.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe oharboe requested a review from maliberty May 3, 2026 09:24

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the shebang in test/orfs/check_same.sh from #!/bin/bash to #!/usr/bin/env bash to improve script portability across different environments. I have no feedback to provide as there were no review comments to evaluate.

@oharboe oharboe mentioned this pull request May 3, 2026
@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty merged commit 097007a into The-OpenROAD-Project:master May 4, 2026
17 checks passed
@oharboe oharboe deleted the nix-shebang-check-same branch May 18, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants