[illumos-Developer] webrev: reimplementation of od

Guido Berhoerster guido+illumos.org at berhoerster.name
Sun Oct 17 04:20:59 PDT 2010


* Garrett D'Amore <garrett at nexenta.com> [2010-10-17 07:03]:
> 	c) No support for legacy semantics of "-c".  If you want those in your
> script, run your script with LANG=C (or LC_CTYPE=C), rather than in a
> different locale.  (It will go faster, too!)  The semantics I followed
> are what is required by POSIX.
> 
> 	d) No special interpretation of "-" to mean stdin.  That's verboten by
> POSIX, and the xpg4 version doesn't do it.  So neither does my code.  If
> someone *really* believes they want to mix stdin on the list of files,
> let me know, and I'll craft a version up.  I just think its not very
> worthwhile, its a semantics that is horribly confusing.

After the recent (heated) discussion about printf I find this a
bit confusing, what is Illumos general strategy for changes to the
userland? Quirk-by-quirk compatibility in order to prevent
breakage of legacy scripts or modernization and convergence with
/usr/{xpg4,xpg6}/bin?

One minor issue, usage information need to go to stderr.

-- 
Guido Berhoerster



More information about the Developer mailing list