version 1.2, 1996/05/22 11:35:30 |
version 1.3, 1996/06/25 15:20:07 |
|
|
} |
} |
p = lookup(cmd); |
p = lookup(cmd); |
if (p == (struct cmdtab *)-1) { |
if (p == (struct cmdtab *)-1) { |
/* if not a primary command, try a display specific one */ |
error("%s: Ambiguous command.", cmd); |
if (curcmd->c_cmd == 0 || !(*curcmd->c_cmd)(cmd, cp)) |
|
error("%s: Ambiguous command.", cmd); |
|
goto done; |
goto done; |
} |
} |
if (p) { |
if (p) { |
|
|
status(); |
status(); |
goto done; |
goto done; |
} |
} |
|
if (curcmd->c_cmd == 0 || !(*curcmd->c_cmd)(cmd, cp)) |
|
error("%s: Unknown command.", cmd); |
done: |
done: |
sigsetmask(omask); |
sigsetmask(omask); |
} |
} |
|
|
nmatches++; |
nmatches++; |
} |
} |
} |
} |
if (nmatches != 1) |
if (nmatches > 1) |
return ((struct cmdtab *)-1); |
return ((struct cmdtab *)-1); |
return (found); |
return (found); |
} |
} |