Don't list shell builtins when the hash command is used (SUSv3)

This commit is contained in:
Tim J. Robbins 2002-06-13 07:50:50 +00:00
parent 4fdc73e4fa
commit 83952a118b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98157

View File

@ -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;