Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

system/ports/echo

 [1/4] from: oliva:david:seznam:cz at: 30-Aug-2002 11:40


Hello rebol-list, does anybody know what's the system/ports/echo ? (it's set to none)

 [2/4] from: gscottjones:mchsi at: 30-Aug-2002 12:21


From: "RebOldes"
> does anybody know what's the system/ports/echo ? (it's set to none)
Hi, Oldes, Looks like it is currently used in the echo command:
>> 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] ] ] I was originally thinking it might be used in serial communications, like setting echo on or off, etc. Maybe it is, but I can find no use that proves this point. For what its worth. Regards, --Scott Jones

 [3/4] from: greggirwin::mindspring::com at: 30-Aug-2002 11:37


Hi Oldes, << does anybody know what's the system/ports/echo ? (it's set to none) >> If you say: echo %my-file.txt output to the console will be echoed to the file. Then you can say: echo none to turn it off. Handy for catching the output of PROBE or SOURCE. --Gregg

 [4/4] 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