-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error in special bltin disabling .sh.tilde disc (re: 3c2b0dc)
Since sh_exit() in fault.c now sets sh.tilde_block to 0, an error in a special built-in will set that to 0. Then the tilde expansion completes and sh.tilde_block is decreased in tilde_expand2(). Meaning it gets decreased after being set to 0, so it gets permanently blocked due to its value -1. The simplest fix is to explicitly set sh.tilde_block to 1 and 0 instead of increasing and decreasing it.
- Loading branch information
Showing
3 changed files
with
20 additions
and
3 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