P.S. another quirk with the builtins:  part of a line in my .kshrc looks like

date '+3600*%H+60*%M+%S'

It works with /usr/bin/date, but with the builtin date I get all sorts
of errors:

date: +*: unknown option
date: +%: unknown option
date: +H: unknown option
Usage: date [-aceEiLlmnsuz] [-d date] [-f format] [-p format] [-U scale]
            [ +format | date ... | file ... ]

(the result was ultimately used to reset SECONDS to count since local midnight 
so
that hh:mm:ss could easily be regenerated out of it to incorporate in PS1;
some devious stuff I found somewhere that works, except for the date builtin
blowing up on it)
 
 
This message posted from opensolaris.org

Reply via email to