Hello.

Next problem. input? doesn't work correctly when 
stdin was redirect to file. (or I am so mixed? ;-)

simple script:

--%aam.r--
REBOL []
print input?
print ["1:" input]
print ["2:" input]
while [input?] [print input]
quit   
--end of %aam.r--

and this testing file:
--%mailik--
>From [EMAIL PROTECTED] Mon Nov  1 14:11:21 1999
Date: Mon, 1 Nov 1999 15:02:08 +0100 (CET)
From: Jan Strejcek <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: ugh

--
Jan Strejcek
[EMAIL PROTECTED]       
--end of %mailik--

and when I write on my linux (with 2.1.2.4.1, but new beta 
makes it too):

$rebol -wq aam.r <mailik
false
1: From [EMAIL PROTECTED] Mon Nov  1 14:11:21 1999
2: Date: Mon, 1 Nov 1999 15:02:08 +0100 (CET)
$ 

well, why false when input isn't empty?
How can I figure out if input is empty or isn't?

next problem is whe I run it without -w:
$rebol -q aam.r <mailik     
false
1: 0 (CET)
2: From: Jan Strejcek <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: ugh

--
Jan Strejcek
[EMAIL PROTECTED]
none
none
none
none
none
none
none
none
none
none                                                               
...until ^C or something like this.


what's even more strange is that 
$rebol -q aam.r <mailik | more
false
1: From [EMAIL PROTECTED] Mon Nov  1 14:11:21 1999
2: Date: Mon, 1 Nov 1999 15:02:08 +0100 (CET)
$ 
and finished. Simply, redirectiong output makes difference!!!
(also for new beta too)

Why?

Regards,
Jan       

Reply via email to