-
Notifications
You must be signed in to change notification settings - Fork 36
Added -p and -l options to umask, builtin and trap built-ins #856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
The following options have been added for printing reinputtable command output: umask -p (ksh93v- backport) builtin -p (ksh93v- backport) hash -l Additionally, 'trap -l' has been backported from ksh93v- for listing signals.
Did you have any use case in mind for |
An oddity:
I think the |
I've fixed
Not particularly. The main reason I added it was because bash has it, and because the feature was cheap to implement as far as LOC goes. Edit 06-09-2025: I'l also note that the |
However, the bash feature is different:
So bash produces commands that recreate the tracked aliases as they were, without searching them in PATH again. This is the true meaning of "recreating the current tracked aliases". Your ksh version doesn't do this. Even if it did, it wouldn't make a difference, because unlike bash, ksh effectively ignores the hash table when doing PATH searches. So I don't think |
This pull request adds the following options for printing reinputtable command output:
umask -p
(ksh93v- backport)builtin -p
(ksh93v- backport)hash -l
Additionally,
trap -l
has been backported from ksh93v- for listing signals.