Don't list shell builtins when the hash command is used (SUSv3)
This commit is contained in:
parent
4fdc73e4fa
commit
83952a118b
@ -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…
x
Reference in New Issue
Block a user