From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31377 invoked from network); 2 Jul 2020 11:37:50 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 2 Jul 2020 11:37:50 -0000 Received: (qmail 7238 invoked by alias); 2 Jul 2020 11:37:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: Sender: zsh-users@zsh.org X-Seq: 24972 Received: (qmail 18277 invoked by uid 1010); 2 Jul 2020 11:37:36 -0000 X-Qmail-Scanner-Diagnostics: from wout1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25857. spamassassin: 3.4.4. Clear:RC:0(64.147.123.24):SA:0(-2.6/5.0):. Processed in 5.4659 secs); 02 Jul 2020 11:37:36 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtdeggdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkjghfofggtgfgsehtqhdttdertdejnecuhfhrohhmpeffrghnihgv lhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpefhtdetfeehveeutdehuddtieefgeettedtjedtffehudeiieej leetteekudetheenucfkphepjeelrddujeeirdefledrieelnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgr hhgrfhdrnhgrmhgv X-ME-Proxy: Date: Thu, 2 Jul 2020 11:36:40 +0000 From: Daniel Shahaf To: Peter Stephenson Cc: zsh-users@zsh.org Subject: Re: How to impose a numeric sort on negative numbers? Message-ID: <20200702113640.3343ff0c@tarpaulin.shahaf.local2> In-Reply-To: <3580763ca2a81e24786f92071be073833b820b83.camel@ntlworld.com> References: <3580763ca2a81e24786f92071be073833b820b83.camel@ntlworld.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Peter Stephenson wrote on Wed, 01 Jul 2020 20:42 +0100: > +++ b/Doc/Zsh/expn.yo > @@ -1097,6 +1097,11 @@ are sorted before those with fewer or none. Hence= the array `tt(foo1 foo02 > foo2 foo3 foo20 foo23)' is sorted into the order shown. > May be combined with `tt(i)' or `tt(O)'. > ) > +item(tt(DASH()))( > +As tt(n), but a leading minus sign indicates a negative decimal > +integer. A solo `tt(DASH())' not followed by an integer does > +not trigger numeric sorting. > +) In the texinfo build DASH() will emit _two_ hyphens, which would be incorrect in this context. I think both instances of DASH() should be changed to use a literal minus sign. The macro is defined as =C2=ABDEFINEMACRO(DASH)(0)(ifztexi(--)ifnztexi(-))= =C2=BB. Cheers, Daniel