On Tue, Nov 25, 2008 at 11:16:28AM -0500, David Korn <[EMAIL PROTECTED]> wrote:
> cc: [email protected] > Subject: Re: [ast-users] IO redirection problem > -------- > > > Hi > > > > Following works under HP-UX, ksh93 Version M 1993-12-28 s, but this > > particular version is not official binary. The ksh93 Linux binary is > > official one. > > > > log.sh: > > -------------------------------------------------------------------- > > #! /usr/local/bin/ksh93 > > # > > > > function Logi > > { > > print -u $((__LFD)) -f "%(%FT%T)T [EMAIL PROTECTED]" > > } > > > > > > This is a bug. It will be fixed in the next update. Not only should > STDERR not appear twice, it should appear as the last line. > I found out why it works under HP-UX ksh93 s. For some unknown reason the Log function is implemented differently: function Logi { print -u${__LFD} -- "$(printf '%(%Y-%m-%dT%H:%M:%S)T') $@" } The important parts are: * additional $(printf 'XXX') call * version s or s+ Such construct works also under Linux ksh93 s+, but not under 93t version. Hope this clears it up. BR, -- Vallo Kallaste _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
