[REBOL] Re: system/ports/echo
From: g:santilli:tiscalinet:it at: 30-Aug-2002 19:56
Hi RebOldes,
On Friday, August 30, 2002, 11:40:54 AM, you wrote:
R> does anybody know what's the system/ports/echo ? (it's set to none)
>> help echo
USAGE:
ECHO target
DESCRIPTION:
Copies console output to a file.
ECHO is a function value.
ARGUMENTS:
target -- (Type: file none)
(SPECIAL ATTRIBUTES)
catch
>> source echo
echo: func [
"Copies console output to a file."
[catch]
target [file! none!]
][
if port? system/ports/echo [
close system/ports/echo
system/ports/echo: none
]
if file? target [
system/ports/echo: throw-on-error [open/write/new/direct target]
]
]
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r