[Top][All Lists]

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

Re: [Bug-apl] ⎕INP ignores parts of its input (Re: she bang script arg

From: Juergen Sauermann
Subject: Re: [Bug-apl] ⎕INP ignores parts of its input (Re: she bang script arguments)
Date: Tue, 07 Jun 2016 19:43:35 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Kacper,

it is intended that the end delimiter can be anywhere (and the rest of the shall be
ignore then. But something seems to be still wrong in ⎕INP. I have improved it a
little in SVN 738, but something may still be wrong.

/// Jürgen

On 06/02/2016 07:50 AM, Kacper Gutowski wrote:
I came up with this silly variant of APL-in-shell embedding:

  true ←⎕inp'#'
  exec apl --script "$0" -- ${1+"$@"} #
  )erase true

But I think there's something wrong with ⎕INP, actually.
In the example above, true is ⍬ (sic) just before erasing.

      ]BOXING 8
      ⎕INP "E"
      ⎕INP "E"
││ ││
      ⎕INP "E"
│┌→┐ ┌→┐│
││A│ │B││
│└─┘ └─┘│

I was surprised that delimiter doesn't have to be at the beginning of
the line.  I don't know if that's intentional that everything before
it on that line is ignored, but the whole input gets ignored when
there is only a single line of it before the line containing the
delimiter, and that's certainly wrong.


reply via email to

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