Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Prevents make commands from sourcing system /etc/bash.bashrc or ~/.bashrc by adding --norc to .SHELLFLAGS.

This resolves issues where system bash configurations reference unbound variables (like PS1) which cause failures when running under make's strict set -u (nounset) mode.

Fixes: /etc/bash.bashrc: line 7: PS1: unbound variable

Adds --norc to .SHELLFLAGS in Makefile to prevent bash from sourcing
/etc/bash.bashrc or ~/.bashrc during build commands.

This fixes an issue where system bashrc files containing strict checks
(like checking PS1 with set -u) would cause build failures or log spam
because make runs shells with -u (nounset).
@ammar-agent ammar-agent deleted the fix-bashrc-ps1-unbound branch November 24, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant