-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builtin -d
should not delete special builtins
The man page for the builtin command says special builtins cannot be deleted. This wasn't the case though, running `builtin -d` on a special builtin was deleting it. As an example, the following set of commands was ending with 'export: not found': $ builtin -d export $ export foo=bar This commit backports the bugfix from ksh93v- (2014-12-24-beta), which added an error check to prevent special builtins from being deleted. src/cmd/ksh93/sh/nvdisc.c: - Add an error check to prevent special builtins from being deleted. src/cmd/ksh93/tests/builtins.sh - Add a regression test for using `builtin -d` on special builtins.
- Loading branch information
Showing
3 changed files
with
12 additions
and
0 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