From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 7487D24AD8 for ; Sun, 21 Apr 2024 01:01:34 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1713654094; b=QFcBCdm24+6KWtBLQt2qxBkxMXGHLFiOmSPB69+YgVLGpv1dd6eezLAqNv9eu8EUY/0qEtTsi+ x9G/hOpnQgQLojQDYV46m1/zVUoOgO9UhVoOKKI7VWMJdu3Xj00b6jTEmIBw0MQvmyoHyHOyqm YlGMl94Rs+/znBzN4nKlOJUTnJ/oREyUd1kI78V8gmu/wD8f4BNoYkoeRd6BegjNUDOHDe+FM8 DFWt3h90AyGXA1dHoPDisbAByJbtGJoPQYk9609rp5l6Fi6kbSU+Qm1HwH20+k8VFnSrPRi+t4 4dGxVNcSm0uMaBS6TtvK21/T9aWu4SrLDka62sIGmoCePw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1713654094; bh=Nio5NHIxDg6w1wrX6xAoNrBNhszRZSfLBqXQnHHxfLA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:To:From:DKIM-Signature:DKIM-Signature; b=VKoVgzcbFdUNlyGLg/QX1nJdTBZtgj4aQ2U+R3YibS/cL0kDcf1MTTGcLMi0tiYdUr0VE+zI7r yTF1LnPEvT3e4ntVPUHyqCZZ8bcAgwg280cgxWa0liVsefs8RJV9B+CB+BHVX6lGTHCT+OqJwy uOTts2sOxY3UKqWMi92drQrZp/0YNG9jEDPlAL/I3SpsMkmtPdbNdGp11LtlJesmgoQONICjgA H6qC2tNKFhpYu3muAR5GZpAVqjBJTGhe2q1jGcV8hndCJ8A9CDqSZafX6Zq/AzBrFGglWMuKjy ivZIYMyeY+xL80rVenGqxzuzUUNZUiyHukWaUvw7SQnrkg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=QoQo59M7dR9gEAyN5p9N4456GR3Sqxs+rhXBH0fqaH0=; b=Z1CLfJpSzkRP2DqP435kbPuEK2 8IjzdYChp+Ji436HQCwP9dp/vXArqCBYSWDpkhL3LLhC1Il9bhGJfOHo/izpsSsOWVo6XTVqRh3Pe KPszGo//Qma12GyjMRmSSNKhDSF/bRnQl7Us6/1D0LsdQPEQyc33mcHp/yKUeNS28CzgLB1+T3xxg ZQnFuMIyPa9zj3pRafozuI1rLwYpd1aabJjrNnPFKKvThISxzEMgCi/Rh/mwSiYiuTJKk6uS4Kou7 iV0QYowHX6qw+Z9LSoyOieBrMOJLijTUfI14JSy0lMidxxOd00T4Qk9nZPJqifwQZpF29SQhbQQ0S WCulFzUQ==; Received: by zero.zsh.org with local id 1ryJiA-000E5G-0S; Sat, 20 Apr 2024 23:01:34 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f169.google.com ([209.85.208.169]:53444) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ryJeK-000DWA-Dp; Sat, 20 Apr 2024 22:57:38 +0000 Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2db2f6cb312so57693381fa.2 for ; Sat, 20 Apr 2024 15:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713653855; x=1714258655; darn=zsh.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=QoQo59M7dR9gEAyN5p9N4456GR3Sqxs+rhXBH0fqaH0=; b=kdkjEaYijeQ2kBilCOHo9i8j7/vKSgOG3MhzKpdyIVu5lp8KjIlHZiJnYCvZnQtcvV rTyIIGRy/k/k7GD3nqgKQEAyaUV2/9lBLPywhtReendjLj0ztCcZhGB1snkfbL3Hx9EH oNvU40zVuhG8l0gL85/dbpL/ObHv7SqewkzQ+glzJxNOZHHB5DcJBi6VGwFzxdgVc7Rd wjxC4LU8swMUhVfi2mthBuR63/aG6aC6wUzJqlqd+5u2kqwjslCpNLF+ecLhVe0fl+kw twBT1GzuFsodfzYAVBR2dKmET3oTcpl9zJoX/jWZ3IV7nVshYj+vvoNQ9RxTJaCaXqgG Gq/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713653855; x=1714258655; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QoQo59M7dR9gEAyN5p9N4456GR3Sqxs+rhXBH0fqaH0=; b=rz1isPXccqUw4Sx/W+8ZRrWH9ZHjylqRpdZG2Ub3oSCT5l2Xlf7jumPSo1hp6H+bb4 4a346lwIP9L8FcOlM6S8UsKPEfGGl5IJa+YmtNSVRrqm3AzBIw8rRxXr9epta2XDeZMe 8UIJvavf+hkqfMxGggTbUeDcH1csx+rHiXx2nb2MCvGJ2vqHMPQfBMemw7A0q/WbZylR 7mfaOQG0Vs5R4KmjkewPXaisUI1SYFLuZxnZ64Rsp6t9h0YZdmb0If42RJ3f152lGxsj A+sxD4nKi6AO2SA+8pPJJzLsPIGYCD3IdlQoJBpYAUDJozGSNnoCFPE9gJpsCqIRnfAm INUw== X-Gm-Message-State: AOJu0Yy9q9PKdlcHuypB127Yq4kYbrogalQTYH0MjnmSL1vKGrdMZYX1 BCSAaf2oLw5pOcd3HU+Jvv8wZGvXVO6+Aq9ttpzaAvbo4uzEYgd/11hoIA== X-Google-Smtp-Source: AGHT+IFxhxVycy9L9hnH+cpoQUDusBdjrsBvSzfJui0gm14fIpkrIGTF+Fn8aQRM3HhMsEafxnz3zg== X-Received: by 2002:a05:651c:446:b0:2d8:36f9:67af with SMTP id g6-20020a05651c044600b002d836f967afmr4851547ljg.44.1713653855224; Sat, 20 Apr 2024 15:57:35 -0700 (PDT) Received: from localhost.localdomain (h-94-254-94-11.A230.priv.bahnhof.se. [94.254.94.11]) by smtp.gmail.com with ESMTPSA id u21-20020a05651c141500b002d845ffd60bsm1080858lje.3.2024.04.20.15.57.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 15:57:34 -0700 (PDT) From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Partial revert of 44274 which broke _baudrates Date: Sun, 21 Apr 2024 00:57:33 +0200 Message-Id: <20240420225733.30870-1-mikachu@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Seq: 52895 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: _description does not accept -o numeric, which resulted in _description:zformat:89: invalid argument: expl The array is already sorted correctly in the completer so I don't see any need to have the completion sort it again anyway. --- Completion/Unix/Type/_baudrates | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Completion/Unix/Type/_baudrates b/Completion/Unix/Type/_baudrates index a9d7fe5415..416a4919f8 100644 --- a/Completion/Unix/Type/_baudrates +++ b/Completion/Unix/Type/_baudrates @@ -72,6 +72,7 @@ if (( ${+opts[-f]} )); then done fi -# -1 removes dupes (which there shouldn't be) -_description -1 -o numeric baud-rates expl 'baud rate' +# -1V removes dupes (which there shouldn't be) and otherwise leaves the +# order in the $rates array intact. +_description -1V baud-rates expl 'baud rate' compadd "${argv[@]}" "$expl[@]" -- "${rates[@]}" -- 2.38.1