URL:
<http://savannah.gnu.org/bugs/?50013>
Summary: "file-size" returns three items on the stack when it
should only return two
Project: Gforth
Submitted by: None
Submitted on: Tue 10 Jan 2017 10:19:40 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When using "file-size" it returned more items on the stack than expected.
From the Gforth manual file-size ( wfileid – ud wior)
Here is a example typed straight into Gforth demonstrating the issue
0 value fd-in ok
.s <0> ok
s" ./testin-1.txt" r/o open-file throw to fd-in ok
.s <0> ok
fd-in file-size ok
.s <3> 943877 0 0 ok
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50013>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
bug-gforth mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gforth