[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] 'include' directive?
From: |
enztec |
Subject: |
Re: [Bug-apl] 'include' directive? |
Date: |
Sun, 5 Feb 2017 08:57:15 -0700 |
i don't see 'messages below' but using
a file chmod 644 called ss2 with shebang #! ss2 (shebang
created from )dump) but is a real executable shebang if chmod 700 ss2
if you have executable statements in ss2 they get executed at location of
⍎')copy ss2' (this will show )dump output while with ⊣⍎')copy ss2' the )dump
output silenced
or if a fns then the fns is usable further in the script
and an )off anywhere is taken seriously :)
On Sun, 05 Feb 2017 09:47:55 +0100
Alexey Veretennikov <address@hidden> wrote:
> Yes this is what I tried to do with the copy, see messages below.
>
> address@hidden writes:
>
> > solved - )copy does it - but you can't have )off in the file ;)
> >
> >
> > On Sat, 4 Feb 2017 16:08:06 -0700
> > address@hidden wrote:
> >
> >> Is there some kind of 'include' directive enabled for scripting or an apl
> >> programming method to accomplish it?
> >>
> >> like a )copy but in the script
> >>
> >> fns_group1.inc
> >> ⍝ grouping of similarefns
> >> ∇ fns1
> >> ∇
> >>
> >> ∇ fn2
> >> ∇
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> #! /usr/local/bin/apl --script --
> >>
> >> )include fns_group1.inc
> >>
> >> fns1
> >> fns2
> >>
> >> )off
> >>
> >
>
> --
> Br,
> /Alexey