mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
zsh-workers/7472
This commit is contained in:
parent
6fd5c631d6
commit
af7d36e070
1 changed files with 9 additions and 5 deletions
14
Src/exec.c
14
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);
|
||||
}
|
||||
}
|
||||
|
||||
/**/
|
||||
|
|
Loading…
Reference in a new issue