bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Feature request: initial expression from command line


From: Juergen Sauermann
Subject: Re: [Bug-apl] Feature request: initial expression from command line
Date: Tue, 17 Jun 2014 18:30:10 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi David,

good idea. I have called it --LX instead of --init because it is similar to ⎕LX. The creation of a .log file for non-testcase (.tc) files was actually a fault that has been fixed.
SVN 332.

/// Jürgen


On 06/17/2014 07:18 AM, David B. Lamkins wrote:
Feature request:

Add a command-line option to pass a first command to the interpreter.

For example:

$ apl --init ')LOAD foo'

Note the ways in which the example differs from $ apl -f foo.apl :

- the file is loaded from the workspace directory
- no foo.apl.log file is created
- the contents of foo.apl are not echoed to the session during loading

Alternative:

There may be other uses for --init 'command', but )LOAD and )COPY are
the most obvious. An alternative implementation would be to wire in just
those two cases, as in:

$ apl --load foo
$ apl --copy foo

Again, the file passed to --load or --copy would be resolved relative to
the workspace (i.e. )LIB 0) path.







reply via email to

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