bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] )copy problem


From: enztec
Subject: Re: [Bug-apl] )copy problem
Date: Thu, 26 Jan 2017 18:53:10 -0700

thank you Juergen - sorry my fault - i didn't realize that my start script 
(which loads my apl keyboard, font and then apl was still running an old apl 
1.3 on this computer) 
apl -v   showed the problem   and of course i ran it last 


On Thu, 26 Jan 2017 22:20:00 +0100
Juergen Sauermann <address@hidden> wrote:

> Hi,
> 
> I believe the command as such works:
> 
>       )clear
> CLEAR WS
>       )fns
>       0 0⍴⍎')COPY 5 HTML.apl'
>       )fns
> HTML∆A              HTML∆Assert     HTML∆Body           HTML∆Document
> HTML∆H1             HTML∆H2         HTML∆H3             HTML∆H4
> HTML∆HTTP_header    HTML∆Head       HTML∆Html           HTML∆Img
> HTML∆Li             HTML∆Link       HTML∆Ol             HTML∆Style
> HTML∆T              HTML∆TX_B_1     HTML∆TX_B_E         HTML∆TX_B_E_1
> HTML∆Title          HTML∆Ul         HTML∆__h_w          HTML∆__rel
> HTML∆__src          HTML∆__type     HTML∆__width        HTML∆_alt
> HTML∆_content       HTML∆_height    HTML∆_href          HTML∆_http_eq
> HTML∆_name          HTML∆attr       HTML∆debug          HTML∆emit
> HTML∆emit_1         HTML∆indent     HTML∆indent_2       HTML∆x2y
> HTML∆xbox           HTML⍙Author     HTML⍙BugEmail       HTML⍙Documentaion
> HTML⍙Download       HTML⍙License    HTML⍙Portability    HTML⍙Provides
> HTML⍙Requires       HTML⍙Version
> 
> One thing I am not getting is the library numbers used (5 in my case, 0 in 
> yours).
> 
> Another thing to look at is the library paths (as displayed by
> the )LIBS command). It could be the the paths are different when you use
> apl interactively compared to using it from a script or via a web server.
> 
> Just add e.g.
> 
>       )LIBS
>       )LIB 0
> 
> at the beginning of the script to see if apl has a chance to find the HTML 
> workspace.
> In a normal web server setyup, the user executing the web server is different 
> from
> the normal user and this may lead to different $HOMEs. Library numbers 0-2
> often default to the current directory, which are typically different for a 
> web server and
> a normal user.
> 
> A safe way of handling this is to specify the lib root in the 'preferences' 
> files of the
> different users involved.
> 
> /// Jürgen
> 
> 
> 
> 
> 
> 
> On 01/26/2017 09:22 PM, address@hidden wrote:
> 
> at the top of 
> https://www.gnu.org/software/apl/APL_demo.html
> 
> there is 
> 0 0⍴⍎')COPY 5 HTML.apl'
> 
> 
> 
> 
> when i do       )copy 0 HTML.apl
> loading )DUMP file /apl/workspaces/HTML.apl...
>       )fns
> top4
> 
> 
> but using the code from the APL_demo.html
>       0 0⍴⍎')copy 0 HTML.apl'
> VALUE ERROR
>       )copy 0 HTML.apl
>                    ^
>       
> my system problem or?   is 'script' involved?
> 
> 
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]