Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361751

Summary: Input redirection fails in Run (Arguments not handled correctly, Debug works fine)
Product: [Tools] CDT Reporter: Dimitri Drapkin <drapkin>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact: Ken Ryall <ken.ryall>
Severity: major    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Program reads text from stdin and displays it on the screen. Still causes "Run" to fail. none

Description Dimitri Drapkin CLA 2011-10-23 07:57:35 EDT
Build Identifier: 20110916-0149

Arguments for a program cannot be read from a file during "Run". ~/program <parameters does not happen, when run is clicked. Even though in working directory the path to parameters is specified and <parameters is specified in Arguments (Run configuration). Debug with the same configuration works fine. 

Reproducible: Always

Steps to Reproduce:
1. Compile a program which reads a text from stdin and displays it on the screen (attachment enclosed).
2. Write this text into a file, say, textfile with text "HelloWorld"
3. Specify working directory as the directory containing textfile.
4. Specify Argument <textfile
5. Run will still prompt you to enter some text. Debug will print HelloWorld.
Comment 1 Dimitri Drapkin CLA 2011-10-23 07:59:26 EDT
Created attachment 205766 [details]
Program reads text from stdin and displays it on the screen. Still causes "Run" to fail.
Comment 2 Dimitri Drapkin CLA 2012-11-08 04:46:54 EST
The problem still persists. More details on the thread for bug 385964.

*** This bug has been marked as a duplicate of bug 385964 ***