-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Scripts without #! path (e.g., bin/package) incorrectly inherited .sh.tilde.* discipline functions, affecting tilde expansion. This is because sh_reinit() fails to reinitialise/unset these. Just calling _nv_unset for SH_TILDENOD is not enough. For some reason, the SH_INIT state bit stops _nv_unset() from unsetting discipline functions associated with variables. src/cmd/ksh93/sh/init.c: sh_reinit(): - Don't bother with SH_INIT state bit. I don't see the benefit. - Unset SH_TILDENOD, which now also unsets its disciplines. - Since _nv_unset() now unsets disciplines, remove separate code for zeroing discipline pointers in other variables.
- Loading branch information
Showing
4 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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