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]"
> }
>
>
> __LF=test.log
> redirect {__LFD}>>"${__LF}" 2>&$((__LFD))
>
>
> Logi "$(uname -a) $(print ${.sh.version})"
> print -u2 "STDERR"
> print "STDOUT"
> --------------------------------------------------------------------
>
> When ran, this emits one line "STDOUT" to stdout as expected, but
> logfile content seems weird to me:
>
> test.log:
> --------------------------------------------------------------------
> STDERR
> STDERR
> -25T17:06:15 Linux test 2.6.23.9-default #2 Sat Dec 1 15:12:03 EET 2007 i686
> i68
> 6 i386 GNU/Linux Version M 93t 2008-11-04
> --------------------------------------------------------------------
>
> I would like to see only one line of "STDERR" and non-truncated
> date-time string. Am I doing something wrong or is it bug?
>
> BR,
> --
> Vallo Kallaste
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.
David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users