bugLiberty Eiffel - Bugs: bug #39808, redirection of std_in and out

 
 

bug #39808: redirection of std_in and out

Submitted by:  Raphael Mack <ramack>
Submitted on:  Sun 18 Aug 2013 06:57:35 PM UTC  
 
Category: Kernel librariesSeverity: 3 - Normal
Priority: 5 - NormalStatus: Wont Fix
Assigned to: Raphael Mack <ramack>Open/Closed: Closed
Release: NoneFixed Release: adler
Planned Release: adler

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Oct 2013 10:02:35 PM UTC, comment #4:

Me neither, with a few more years of experience.

Oh, well. Keep as it is for now. Closing for adler, feel free to re-open if you want for later.

Cyril Adrian <cadrian>
Project Administrator
Mon 19 Aug 2013 09:30:51 PM UTC, comment #3:

oops, when I see your changes in low_level_redirection_example, I'm convinced, that I took a look at redirection_example yesterday and only wrote about low_level_redirection - even my commit-message was wrong...

Could you please double check my changes in redirection_example? - If this is what you described as the upper layer redirection I'd add a few comments about this.

But I still do not see the benefit of STANDARD_STREAMS over just using a singleton of the output stream in the application...

Raphael Mack <ramack>
Project AdministratorIn charge of this item.
Mon 19 Aug 2013 09:19:37 PM UTC, comment #2:

ok, this way low_level_redirection makes sense. redirection_example.e is still strange, the idea behind this is to be upper layer redirection, right? So the application should use standard_streams.std_output, which could be redirected via standard_streams.set_std_output. This really seems redundant, we could make the standard_streams.set_std_*-features obsolete or document the two variants.

Anyhow, are there any pros for the standard_streams-way?

Raphael Mack <ramack>
Project AdministratorIn charge of this item.
Mon 19 Aug 2013 12:08:42 PM UTC, comment #1:

I improved the example, please tell me what you do not understand.

It has nothing to do with STANDARD_STREAMS. We have two ways to redirect standard streams, one is low level (completely transparent to the rest of the program), one is upper level (needs support from the program), but maybe it is redundant.

Cyril Adrian <cadrian>
Project Administrator
Sun 18 Aug 2013 06:57:35 PM UTC, original submission:

Rmk doesn't understand how STANDARD_STREAMS and ANY.std_output shall work together when std_output shall be redirected. Liberty/tutorial/io/LOW_LEVEL_REDIRECTION_EXAMPLE does now compile but is still not functional.

Additionally it's unclear how STDIN and STDOUT should re restored once redirected...

Raphael Mack <ramack>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ramack (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Oct 2013 10:02:35 PM UTCcadrianStatusIn Progress=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 19 Aug 2013 09:30:51 PM UTCramackStatusFixed=>In Progress
      Assigned tocadrian=>ramack
      Open/ClosedClosed=>Open
    Mon 19 Aug 2013 12:08:42 PM UTCcadrianStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>adler

    Back to the top


    Powered by Savane 3.1-cleanup