Hi Hans-Peter,

I have added a query syntax to the *)LIBS *command:

*      )LIBS 0 ?
library reference 0 stands for directory /home/eedjsa/apl-1.9/src/workspaces
    That directory exists.
      )LIBS 2 ?
library reference 2 stands for directory /home/eedjsa/apl-1.9/src/wslib2
    That directory is missing or not accessible.
    See command )LIBS without arguments for details.*

*SVN 1878*.

Best Regards.
Jürgen


On 7/1/25 15:45, Hans-Peter Sorge wrote:
Hi Jürgen,

correct.

However as there is no simple command that returns the name of the actually set LIB name
im parsing the return from  ⍎')LIBS' for a proper Lib name.
It just makes handling LIB-changes programmatically inconvenient.

As ]LIB and ]LIBS return the same content, letting ]LIBS n return the corresponding LIB-Path
could simplify (a little bit) the coding.

Anyhow as the parsing of )LIBS does the job I have a solution.

Best Regards
Hans-Peter

Am 01.07.25 um 12:53 schrieb Dr. Jürgen Sauermann:
Hi Hans-Peter,

*)LIBS* (i.e. without arguments) displays the directories for all library reference numbers

*)LIBS root *(i.e. with one argument) sets the root directory for all library references. This root directory may then contain the sub directories *workspaces*, *wslib1*, *wslib2*, ... *wslib9* for the library numbers 0, 1, 2, ... 9 respectively,

*)LIBS N dir* (i.e. with two arguments *N* and *dir* (a directory) sets the directory
for library reference number *N* to directory *dir*.

Therefore the old behavior of *)LIBS* was incorrect and was fixed at some point in time. Your example *)LIBS 0 ** sets library reference number *0* to directory** *(which most likely
does not exist since the shell expands *** to all files).

Best Regards,
Jürgen


On 6/30/25 16:57, Hans-Peter Sorge wrote:
Hi

in the past *)LIBS 0 **
did return the set Library Path.

With SVN: 1876:1877M

I get

*)libs 0 ***
*LIBRARY REFERENCE 0 SET TO *

*     )lib 0***
IMPROPER LIBRARY REFERENCE '0': No such file or directory

Currently there is no (documented?) simple way to retrieve the lib-name.

Best Regards
Hans-Peter


  • )LIBS n * Hans-Peter Sorge
    • Re: )LIBS... Dr . Jürgen Sauermann via Bugs and suggestions for GNU APL
      • Re: )... Hans-Peter Sorge
        • R... Dr . Jürgen Sauermann via Bugs and suggestions for GNU APL
          • ... Hans-Peter Sorge
            • ... Dr . Jürgen Sauermann via Bugs and suggestions for GNU APL
              • ... Hans-Peter Sorge

Reply via email to