[ksh93-integration-discuss] uname -i

Richard L. Hamilton rlhamil at smart.net
Fri Mar 28 18:36:45 PDT 2008


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


More information about the ksh93-integration-discuss mailing list