Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Something odd in _match



Is it really supposed to be so:

  if (( ret )); then
    [[ "$compconfig[match_insert]" = unambig* &&
       $#compstate[unambiguous] -ge ${#:-${PREFIX}${SUFFIX}} ]] && 
                                                             ^^^^^^^
        compstate[pattern_insert]=unambiguous
    return 0
  fi

and in another place (near the end) the same and even worse :-)

if (( ! ret )); then
  [[ "$compconfig[match_insert]" = unambig* &&
     $#compstate[unambiguous] -ge ${#:-${PREFIX}${SUFFIX}} ]] && 
      compstate[pattern_insert]=unambiguous
fi

In this case we don't even have a command to execute after condition.

/andrej



Messages sorted by: Reverse Date, Date, Thread, Author