|
From: Ben A. <be...@bg...> - 2002-09-27 15:58:25
|
I cannot seem to redirect stdin for a trivial program. Here's how to
reproduce my problem:
Create test.bas:
---- cut here ----
declare string s
print "Test";
linput s
print s
---- cut here ----
Compile/link it:
$ basic test
$ link test
Then test as follows:
$ bash
bash$ ./test
Test? foo
foo
bash$ echo "foo" | ./test
Test? bar
bar
What happened to my second "foo"? It seemed to go into the ether. I
can't figure out how to get "test.exe" to read from stdin.
If I cannot do this simple thing, bash/gnv is useless for my purposes
(as a portable replacement for DCL, to be used on both VMS and Wintel
(cygwin) systems). I really hope I'm just missing something simple,
here.
Ben
--
Ben Armstrong -. Medianet Development Group,
BAr...@dy... `-. Dymaxion Research Limited
<URL: http://www.dymaxion.ca/> `- Halifax, Nova Scotia, Canada
|