diff options
-rw-r--r-- | Src/exec.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Src/exec.c b/Src/exec.c index a7a861f12..91f95fe24 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -615,12 +615,16 @@ iscom(char *s) int isreallycom(Cmdnam cn) { - char fullnam[MAXCMDLEN]; + if (cn->flags & HASHED) + return 1; + else { + char fullnam[MAXCMDLEN]; - strcpy(fullnam, cn->u.name ? *(cn->u.name) : ""); - strcat(fullnam, "/"); - strcat(fullnam, cn->nam); - return iscom(fullnam); + strcpy(fullnam, cn->u.name ? *(cn->u.name) : ""); + strcat(fullnam, "/"); + strcat(fullnam, cn->nam); + return iscom(fullnam); + } } /**/ |