Lines Matching refs:command
818 _history_expand_command(const char *command, size_t offs, size_t cmdlen, in _history_expand_command() argument
834 if (strchr(":^*$", command[offs + 1])) { in _history_expand_command()
844 idx = (command[offs + 1] == ':')? 1:0; in _history_expand_command()
847 if (command[offs + 1] == '#') { in _history_expand_command()
852 (void)strlcpy(aptr, command, offs + 1); in _history_expand_command()
857 qchar = (offs > 0 && command[offs - 1] == '"') in _history_expand_command()
859 ptr = get_history_event(command + offs, &idx, qchar); in _history_expand_command()
861 has_mods = command[offs + (size_t)idx] == ':'; in _history_expand_command()
876 cmd = command + offs + idx + 1; in _history_expand_command()
916 command + offs + idx); in _history_expand_command()
927 if (*cmd == '\0' || ((size_t)(cmd - (command + offs)) >= cmdlen)) { in _history_expand_command()