What are you trying to do?

My suggestion: don't use trim/lines (or read for that matter).
The newline between shebang line and the beginning of the rebol
header is removed by trim/lines. I think the rebol header
must begin on a new line.

>> probe load/header {# rebol []}
** Syntax Error: Script is missing a REBOL header
** Near: probe load/header "# rebol []"

>> probe load/header {# ^/rebol []}

make object! [
    Title: "Untitled"
    Date: none
    ;...
    Type: none
    Content: none
]

Anton.

> Hello list
> 
> I'm trying to use load/header for a rebol script to retrieve the 
> header. This works fine:
> >> probe first load/header read 
> http://www.oops-as.no/roy/rebol-scripts/url-handler.r
> 
> But then trim/lines seems to destroy everything:
> >> probe first load/header trim/lines read 
> http://www.oops-as.no/roy/rebol-scripts/url-handler.r
> 
> Has anyone seen this before? Does anyone know a workaround?
> HY

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to