Repository navigation
fix(invocation): default interactive aliases on before CLI overrides - #643
Merged
Merged
Conversation
…rrides GNU shell.c:1830 init_interactive enables expand_aliases; shell.c:540-549 main selects interactive initialization before shell.c:574-576 run_shopt_alist and startup files. Apply that default in the shared invocation API and standalone driver, preserving the last explicit -O/+O override and later rc changes. Closes #642 Related: unixwin/niubash#367 Validation: 27 focused regressions passed; 14 GNU Bash 5.3.0 script-file comparison cases match stdout and exit status. Full alias grammar parity is not claimed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contract and fix
Closes #642. Related host blocker unixwin/niubash#367; broader audit unixwin/niubash#368 remains open.
GNU shell.c:1830 init_interactive enables expand_aliases before shell.c:574-576 run_shopt_alist. Set shared API and standalone interactive defaults before explicit shopt overrides and startup files. Preserve last -O/+O override, rc disabling and noninteractive off.
Evidence