Euphoria
Ticket #451:
Accept stdin for a program
-
Reported by
jeremy
Nov 27, 2010
echo ? 2 | eui
This will help w/scripting from editors, shells and other programs.
Details
1. Comment by jimcbrown
Nov 27, 2010
Um, how would that ever work? You have a file named '?' and a file named '2' ? But the wildcard ? would match the 2 also...
On Linux, you can do this right now:
echo \? 2 | eui /proc/self/fd/0
On the BSDs, there is probably a /dev/stdin or similar device that would do the same thing.
(These options aren't as good as supporting it natively or with the '-' filename, but are temporary workarounds.)
2. Comment by jeremy
Nov 27, 2010
Um, my demo is flawed! I've updated it as to not cause further confusion. It was:
cat ? 2 | eui
I meant for it to be (which it is now)
echo ? 2 | eui