[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase
From: |
enztec |
Subject: |
Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase |
Date: |
Fri, 25 Apr 2014 19:08:59 -0600 |
I delete the email addresses from the replies i don't know if it is even needed
to do that
I've put together the following based on Jurgen's info about )copy text_file
(with !# in first line) for editing fns outside of the workspace with vi
one problem? i've found is - if the fns already exists then )copy text_file
with it in it causes not overwriting but addition addition to it - i guess the
way it works is the ∇ opens the file and accepts new input...
okay so that is why i use
⎕ex 'ai' (run manually - i will put this into the edit fns after i can copy
the text file in - in the fns
then the following 'edit fns'
#! edit
∇rs←edit fn;fp
'lib_file_io.so' ⎕FX 'FILE_IO'
⍝ ]XTERM OFF this was needed at one time run in ws(gives error if run here
though) during dev of this so i left it but doesn't seem to be needed any more
fp←'r' FILE_IO[24] 'vi workspaces/',fn,' < `tty` > `tty`'
FILE_IO[25] fp
⍝ ⎕ex fn
⍝ ⎕cp fn need dev of
∇
edit 'a1'
you can put vars and fns in a1
)copy ai
On Sat, 26 Apr 2014 08:38:40 +0800
Elias Mårtenson <lokedhs> wrote:
> There isn't, but implementing it is possible in APL itself. To my knowledge
> this has not been done yet.
>
> Regards,
> Elias
> On 26 Apr 2014 07:16, <enztec> wrote:
>
> > I've found ⎕ex that can used in a function since )erase can't so is there
> > a suitable ⎕cp for )copy - i've looked in all the .def files and blown up
> > many a ws trying to find it so any help would be appreciated - also is
> > there a list of all the ⎕ commands - i'd be glad to write up a simple usage
> > file for them
> >
> > btw this is like the 4th post - if it gets no response i won't post any
> > more
> >
> >
- [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, enztec, 2014/04/25
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, Elias Mårtenson, 2014/04/25
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase,
enztec <=
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, Juergen Sauermann, 2014/04/26
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, enztec, 2014/04/26
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, Kacper Gutowski, 2014/04/26
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, enztec, 2014/04/26
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, Juergen Sauermann, 2014/04/26
- [Bug-apl] Return value of fgets ignored in lib_file _io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase), Kacper Gutowski, 2014/04/26
- Re: [Bug-apl] Return value of fgets ignored in lib_file _io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase), Juergen Sauermann, 2014/04/26
- Re: [Bug-apl] Return value of fgets ignored in lib_file _io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase), enztec, 2014/04/26
- Re: [Bug-apl] Return value of fgets ignored in lib_file _io. (Was: Re: is there a )copy ⎕fns lik e ⎕ex is )erase), Elias Mårtenson, 2014/04/26
- Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase, Elias Mårtenson, 2014/04/26