On Thu, Oct 29, 2020 at 10:22:52PM +0100, Hans-Peter Sorge wrote:
the return size from ⎕FIO[24] / ⎕FIO[6] is limited to 5000B:
(...)
Should be: What ever it takes :-)
It's not limited to 5000B, it's just the default size and you can use
any other with dyadic form. ⎕FIO is fairly low-level a
Hi Hans-Peter,
I have checked the ⎕FIO code and it looks correct to me.
In your first example I get the result that you are expecting:
* Command←'echo "sad x asds" | sed "s/x/y/g"'**
** Handle←⎕FIO[24] Command**
** D←⎕FIO[6] Handle**
** ZN←⎕UCS D**
** ZN **
**sad y asds
Hi,
As already pointed out by Kacper, ⎕FIO[6] is intended to be used
multiple times and every monadic call will give you 5000 bytes (or less
at the end of the file). Thr dyadic form lets you control the buffer
size (instead
of 5000). If tou set it to, say, 100 Giga then wou will most likely get
On Fri, Oct 30, 2020 at 7:25 AM Kacper Gutowski wrote:
> On Thu, Oct 29, 2020 at 10:22:52PM +0100, Hans-Peter Sorge wrote:
> >the return size from ⎕FIO[24] / ⎕FIO[6] is limited to 5000B:
> (...)
> >Should be: What ever it takes :-)
>
> It's not limited to 5000B, it's just the default size and you
Hi,
⍝ works as expected
(3) ↑ 'abcd'
abc
⍝ works as expected too
(,3) ↑ 'abcd'
abc
⍝ looks like a bug here - IBM APL is OK
(,3) ↑¨ 'abcd' 'wxyz' ''
LENGTH ERROR
(,3)↑¨'abcd' 'wxyz' ''
^ ^
⍝ needs to be a scalar
(,/,3) ↑¨ 'abcd' 'wxyz' ''
Hello Jürgen,
sorry - I missed the the second help line entry for ⎕FIO[6].
The dyadic form is sufficient for my case.
Thank you and Best Regards
Hans-Peter
Am 30.10.20 um 14:34 schrieb Dr. Jürgen Sauermann:
Hi,
As already pointed out by Kacper, ⎕FIO[6] is intended to be used
multiple times
Hello Jüregen,
I now have executed like code multiple times from a function.
Only for the last execution returns -10.
May be some race condition.
Thank You for the explanation.
Best Regards
Hans-Peter
Am 30.10.20 um 14:20 schrieb Dr. Jürgen Sauermann:
Hi Hans-Peter,
I have checked the ⎕FIO
Hi,
working with an external editor under some circumstances some function
content gets destroyed:
)wsid
IS CLEAR WS
'libedif2.so' ⎕FX 'edif2'
edif2
'emacs' edif2 'FN1' - adding two lines, save and exit
'emacs' edif2 'FN1' - body OK
'emacs' edif2 'FN2' - n
Looks like it might be a concurrency problem--edif2 forks, IIRC, twice,
serially, and I never was completely sure that I had the waitpid()s
right. I'll take a look.
Chris
On 10/30/20 11:22 AM, Hans-Peter Sorge wrote:
Hi,
working with an external editor under some circumstances some function
On Fri, Oct 30, 2020 at 09:17:27AM -0500, Blake McBride wrote:
I'd like to see your API design proposal.
It's not like I want to change anything, but wouldn't it be great to be
able to write it simply as something like {⍵,⎕FIO[6] fd}⍣≡⍬ ?
Disregarding errors, this would be possible if ⎕FIO[6]
On Fri, Oct 30, 2020 at 02:34:35PM +0100, Dr. Jürgen Sauermann wrote:
There is also ⎕FIO[26] which reads an entire file, but I am not sure
how it works with popen()ed streams.
It doesn't at all because it takes a path which additionally needs to be
a regular file because it's mmaped rather tha
i Hans-Peter,
thanks for reporting this. Fixed in SVN 1350.
Best Regards,
Jürgen
On 10/30/20 3:22 PM, Hans-Peter Sorge
wrote:
Hi,
⍝ works as expected
(3) ↑ 'abcd'
abc
Hi Jürgen,
thank you.
Best Regards
Hans-Peter
Am 30.10.20 um 19:09 schrieb Dr. Jürgen Sauermann:
i Hans-Peter,
thanks for reporting this. Fixed in *SVN 1350*.
Best Regards,
Jürgen
On 10/30/20 3:22 PM, Hans-Peter Sorge wrote:
Hi,
⍝ works as expected
(3) ↑ 'abcd'
abc
⍝ works as expe
13 matches
Mail list logo