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

Re: Emulation and NUMERIC_GLOB_SORT



Zefram wrote:

> Fundamentally, I view globbing as a programming feature, which should
> be utterly unaffected by locale.  Same for string comparisons in [[]].
> I think we do want a locale-dependent string comparison operation, but
> its use is very much the exception, not the rule.  Pattern matching and
> string comparisons are used on all sorts of strings, and only very rarely
> on natural-language text.

Sounds like a case for a matching flag, doesn't it? `(#L)' or
something to turn using locale-definitions on (and also in sorting if
the thing is globbed).

> ...
> 
> [1] That reminds me, one of the things I never got round to implementing
> as a builtin was the POSIX "printf" utility.  The advantage of having
> it as a builtin is that we could then use the same code for a "sprintf"
> builtin, which would put the result into a shell variable instead of
> sending it to standard output, which is a feature I often miss.

Oh yes.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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