[REBOL] Re: Core and stdin
From: brian:hawley at: 13-Apr-2001 12:24
Michal Kracik wrote:
>actually, pipe can be used for redirecting REBOL input and output in
>Windows. The problem is that Windows does not have the cat command,
If you don't have Cygwin, try the type command.
Better yet, why cat into a pipe at all? Use the < operator instead.
...
>What surprised me, piping input into REBOL works as well, if output
>is also redirected:
>
>C:\REBOL\test>echo "Hello REBOL" | rebol -wq --do "print [ {from stdin:}
>input ] quit" | more
>from stdin: "Hello REBOL"
That never occurred to me! I just tried it and it works. Cool!
Now I can rewrite the workarounds I've made over the years :)
Thanks!
Brian Hawley