Modify

Opened 17 years ago

Closed 17 years ago

#1044 closed Bug (No Bug)

StdErr constants for Run()

Reported by: GEOSoft Owned by:
Milestone: Component: Documentation
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

I'm not sure if the docs are wrong here or not

0x8 ($STDERR_MERGED) = Provides the same handle for STDOUT and STDERR. Implies both $STDOUT_CHILD and $STDERR_CHILD.

however

4 + 2 = 6, and BitOR(4, 2) = 6 or 
$STDERR_CHILD + $STDOUT_CHILD = 6 and
BitOR($STDERR_CHILD, $STDOUT_CHILD) = 6

That being the case, where does the 0x8 come from?

Attachments (0)

Change History (2)

in reply to:  description comment:1 by anonymous, 17 years ago

Something messed up the code block for the ticket so I'm redoing it without the blocks'

I'm not sure if the docs are wrong here or not

0x8 ($STDERR_MERGED) = Provides the same handle for STDOUT and STDERR. Implies both $STDOUT_CHILD and $STDERR_CHILD.

however

4 + 2 = 6, and BitOR(4, 2) = 6 or
$STDERR_CHILD + $STDOUT_CHILD = 6 and
BitOR($STDERR_CHILD, $STDOUT_CHILD) = 6
That being the case, where does the 0x8 come from?

comment:2 by Valik, 17 years ago

Resolution: No Bug
Status: newclosed

It is a completely separate flag. It merges the stdout and stderr stream into a single stream. This is not the same thing as stdout having its own stream and stderr having it's own stream.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.