[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] AP100 problem
From: |
Frederick Pitts |
Subject: |
[Bug-apl] AP100 problem |
Date: |
Mon, 13 Feb 2017 19:29:27 -0600 |
Gentle people,
I am having trouble using the AP100 processor. Code that
worked reliably two to three years ago, no longer works.
The problem can be replicated (I hope) as follows:
1) Create a folder named 'Sound'.
2) Touch a file in 'Sound' named 'playsnd'
3) Copy the attached 'foobar.apl' into the folder containing
'Sound' and run ./foobar.apl after making sure it has execute
permission.
The content of foobar.apl is:
#!/usr/local/bin/apl --script
100 ⎕SVO 'OS' ⋄ 0 ⍴ ⎕DL 1
OS ← ⎕ ← 'ls Sound/*'
OS
OS ← ⎕ ← 'ls Sound/p*'
OS
OS ← ⎕ ← 'ls Sound/pl*'
OS
OS ← ⎕ ← 'ls Sound/pla*'
OS
)OFF
The output for the above, contained in attached
'foobar.apl.out', is:
1
ls Sound/*
Sound/playsnd
0
ls Sound/p*
Sound/playsnd
0
ls Sound/pl*
Sound/playsnd
0
ls Sound/pla*
sh: -c: line 0: unexpected EOF while looking for matching ``'
sh: -c: line 1: syntax error: unexpected end of file
1
Why is the last invocation of the AP100 processor failing? The
error messages reported by 'sh' indicate shell in-line substitution and
end-of-file processing problems. BTW, I'm running on Fedora 25 where
'sh' is actually a symbolic link to 'bash'. And the actual application
involves using the AP100 processor to invoke sound apps from an APL
game.
Regards,
Fred
foobar.apl
Description: Text document
foobar.apl.out
Description: Text document
- [Bug-apl] AP100 problem,
Frederick Pitts <=
- Re: [Bug-apl] AP100 problem, Juergen Sauermann, 2017/02/14
- Re: [Bug-apl] AP100 problem, Frederick Pitts, 2017/02/14
- Re: [Bug-apl] AP100 problem, enztec, 2017/02/14
- Re: [Bug-apl] AP100 problem, Frederick Pitts, 2017/02/15
- Re: [Bug-apl] AP100 problem, enztec, 2017/02/14
- Re: [Bug-apl] AP100 problem, Frederick Pitts, 2017/02/14
- Re: [Bug-apl] AP100 problem, enztec, 2017/02/15
- Re: [Bug-apl] AP100 problem, Kacper Gutowski, 2017/02/15
- Re: [Bug-apl] AP100 problem, Juergen Sauermann, 2017/02/15
- Re: [Bug-apl] AP100 problem, Juergen Sauermann, 2017/02/15