Skip to content

Commit

Permalink
stdenv: use unaliased rm in default fixup
Browse files Browse the repository at this point in the history
When running `genericBuild` interactively from a nix-shell, a bare `rm` without
could be aliased to `rm -i`, which would cause a prompt to the user. This is a
pretty common alias.

Same would hold for cp, mv, etc.
  • Loading branch information
hraban committed Mar 28, 2024
1 parent bb2b73d commit c101440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/setup-hooks/strip.sh
Expand Up @@ -87,7 +87,7 @@ stripDirs() {
# be stripped, so ignore specifically this code.
[[ "$exit_code" = 123 || -z "$exit_code" ]] || (cat "$striperr" 1>&2 && exit 1)

rm "$striperr"
\rm "$striperr"
# 'strip' does not normally preserve archive index in .a files.
# This usually causes linking failures against static libs like:
# ld: ...-i686-w64-mingw32-stage-final-gcc-13.0.0-lib/i686-w64-mingw32/lib/libstdc++.dll.a:
Expand Down

0 comments on commit c101440

Please sign in to comment.