Lines Matching defs:shcmd
1513 getcmd(struct CMD_LINE *cmd, char *shcmd)
1603 for (proceed = TRUE, ptr = shcmd, state = ID, lastc = '\0';
1635 if (state == ID && c == '#' && ptr == shcmd) {
1653 if ((i = ptr - shcmd) < 1 || i > 4) {
1656 bcopy(shcmd, &cmd->c_id[0], i);
1657 ptr = shcmd;
1667 for (cmd->c_levels = 0, ptr1 = shcmd;
1679 ptr = shcmd; /* Reset the buffer */
1685 * Null terminate the string in shcmd buffer and
1691 if (ptr == shcmd) {
1706 if (strcmp(shcmd, actions[i]) == 0) {
1725 (void) strcpy(shcmd, "exec ");
1727 ptr = shcmd + EXEC;
1750 if (ptr >= shcmd + MAXCMDL - 1)
1770 cmd->c_command = shcmd;
1790 if (ptr == shcmd + EXEC)
1791 *shcmd = '\0';