Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361751 - Input redirection fails in Run (Arguments not handled correctly, Debug works fine)
Summary: Input redirection fails in Run (Arguments not handled correctly, Debug works ...
Status: CLOSED DUPLICATE of bug 385964
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-23 07:57 EDT by Dimitri Drapkin CLA
Modified: 2012-11-08 04:46 EST (History)
2 users (show)

See Also:


Attachments
Program reads text from stdin and displays it on the screen. Still causes "Run" to fail. (846 bytes, text/x-csrc)
2011-10-23 07:59 EDT, Dimitri Drapkin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***