From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2045 invoked from network); 15 Dec 2003 18:08:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Dec 2003 18:08:33 -0000 Received: (qmail 6874 invoked by alias); 15 Dec 2003 18:08:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6893 Received: (qmail 6820 invoked from network); 15 Dec 2003 18:08:11 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Dec 2003 18:08:11 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Dec 2003 18:8:11 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBFI8Ae13035 for zsh-users@sunsite.dk; Mon, 15 Dec 2003 10:08:10 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031215180809.ZM13032@candle.brasslantern.com> Date: Mon, 15 Dec 2003 18:08:09 +0000 In-Reply-To: <20031213232313.GU18859@strindberg.dsv.su.se> Comments: In reply to Jesper Holmberg "Re: Sort order" (Dec 14, 12:23am) References: <20031213160239.GT18859@strindberg.dsv.su.se> <1031213191527.ZM5307@candle.brasslantern.com> <20031213232313.GU18859@strindberg.dsv.su.se> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh-users List Subject: Re: Sort order MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Dec 14, 12:23am, Jesper Holmberg wrote: } } > } LC_CTYPE=3Dsv_SE } > } LC_COLLATE=3Dsv_SE } > = } > If you give the command } > = } > print -l * } > = } > do you see the files in same order that "ls" displays them, or in the= } > same order that menu completion offers them? } = } So, print -l * gives the right order, but still menu-completion offers = me } the order l=E5re lare lere. There appears to be a bug masquerading as an optimization in the file-sor= t style. When either no ordering (style not set), or name ordering, is requested, _path_files puts the names into a sorted group so that the completion system reorders them internally, thereby bypassing the LC_COLLATE order. If on the other hand you request any non-name ordering, or reverse name ordering, then _path_files orders the names with globbing and puts them into an unsorted group so that completion skips the internal reordering.