* Re: sorting order of print
@ 1999-08-17 8:27 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 1999-08-17 8:27 UTC (permalink / raw)
To: zsh-users
Hubert Canon wrote:
> % print foo bar Hux gee
> foo bar Hux gee
> % print -o foo bar Hux gee
> bar foo gee Hux
> % print -oi foo bar Hux gee
> bar foo gee Hux
>
> I believe that I should get :
>
> % print -o foo bar Hux gee
> Hux bar foo gee
You should. And since I *do* get this... do you set locale information?
If so, this is probably what's making this fail. If not, I don't know
where it comes from.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* sorting order of print
@ 1999-08-17 8:13 Hubert Canon
1999-08-17 8:30 ` Andrej Borsenkow
0 siblings, 1 reply; 4+ messages in thread
From: Hubert Canon @ 1999-08-17 8:13 UTC (permalink / raw)
To: zsh-users
Hi,
With zsh-3.1.6 (I don't know for other versions), I don't know how to
tell print to sort its arguments case-dependently.
I see in the manual page zshbuiltins :
-o Print the arguments sorted in ascending order.
-O Print the arguments sorted in descending order.
-i If given together with -o or -O, sorting is per-
formed case-independently.
And I try these :
% print foo bar Hux gee
foo bar Hux gee
% print -o foo bar Hux gee
bar foo gee Hux
% print -oi foo bar Hux gee
bar foo gee Hux
I believe that I should get :
% print -o foo bar Hux gee
Hux bar foo gee
By the way : I wanted to sort the result of the globbing pattern
case-dependently (like ls), but I didn't find how. The option
NUMERIC_GLOB_SORT has no effect.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: sorting order of print
1999-08-17 8:13 Hubert Canon
@ 1999-08-17 8:30 ` Andrej Borsenkow
1999-08-17 9:07 ` Hubert Canon
0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 1999-08-17 8:30 UTC (permalink / raw)
To: Hubert Canon, zsh-users
> And I try these :
>
> % print foo bar Hux gee
> foo bar Hux gee
> % print -o foo bar Hux gee
> bar foo gee Hux
> % print -oi foo bar Hux gee
> bar foo gee Hux
>
> I believe that I should get :
>
> % print -o foo bar Hux gee
> Hux bar foo gee
>
>
I believe, print sorts in current locale order. What locale do you have? What do
you get if you just do
sort <
foo
bar
Hux
gee
^D
??
/andrej
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-08-17 9:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-17 8:27 sorting order of print Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
1999-08-17 8:13 Hubert Canon
1999-08-17 8:30 ` Andrej Borsenkow
1999-08-17 9:07 ` Hubert Canon
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).