Lines Matching refs:command
670 _history_expand_command(const char *command, size_t offs, size_t cmdlen, in _history_expand_command() argument
686 if (strchr(":^*$", command[offs + 1])) { in _history_expand_command()
696 idx = (command[offs + 1] == ':')? 1:0; in _history_expand_command()
699 if (command[offs + 1] == '#') { in _history_expand_command()
704 (void)strlcpy(aptr, command, offs + 1); in _history_expand_command()
709 qchar = (offs > 0 && command[offs - 1] == '"')? '"':0; in _history_expand_command()
710 ptr = get_history_event(command + offs, &idx, qchar); in _history_expand_command()
712 has_mods = command[offs + (size_t)idx] == ':'; in _history_expand_command()
727 cmd = command + offs + idx + 1; in _history_expand_command()
767 command + offs + idx); in _history_expand_command()
778 if (*cmd == '\0' || ((size_t)(cmd - (command + offs)) >= cmdlen)) { in _history_expand_command()