bug-apl
[Top][All Lists]
Advanced

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

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


From: David B. Lamkins
Subject: [Bug-apl] Feature request: initial expression from command line
Date: Mon, 16 Jun 2014 22:18:54 -0700

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]