Don't list shell builtins when the hash command is used (SUSv3)
This commit is contained in:
parent
4fdc73e4fa
commit
83952a118b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98157
@ -336,7 +336,8 @@ hashcmd(int argc __unused, char **argv __unused)
|
||||
if (*argptr == NULL) {
|
||||
for (pp = cmdtable ; pp < &cmdtable[CMDTABLESIZE] ; pp++) {
|
||||
for (cmdp = *pp ; cmdp ; cmdp = cmdp->next) {
|
||||
printentry(cmdp, verbose);
|
||||
if (cmdp->cmdtype == CMDNORMAL)
|
||||
printentry(cmdp, verbose);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user