Modify

Opened 15 years ago

Closed 15 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)

comment:1 in reply to: ↑ description Changed 15 years ago by anonymous

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 Changed 15 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.