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

Re: PATCH: stat option to set hash

Typing away merrily, Peter Stephenson produced the immortal words:
> > It seems to me
> > anomalous that stat primarily generates textual output.
> There's text and there's binary and...?

It's more a case of how well it integrates into everything else.  If you
look at most of zsh's builtins and stuff, text output is used for status
stuff, job status, requesting confirmation, tabs-stuff and zle
generally.  Aside from explicit print/echo and read not much causes the
shell to produce data rather than user-fluff on stdout/err.  select
comes to mind, and pwd (which could as well be a shell wrapper around
print and $PWD).  User-fluff includes whence and internal status
reporting stuff.

Normally zsh acts as a filter controller, not a data-source beyond basic
user-input stuff.  I know I'm not important in zsh development, but it
just feels wrong when I see stat shove stuff to stdout.

I know, I'm not expressing this very well.  It's just... feel.
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?

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