scsh-hackers
[Top] [All Lists]

[Scsh-hackers] Options to search for exec scripts (was: Proposal for pac

To: scsh-hackers@lists.sourceforge.net
Subject: [Scsh-hackers] Options to search for exec scripts (was: Proposal for packaging of scsh libraries)
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Wed Nov 12 04:33:08 2003
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de> writes:
> Michel Schinz <Michel.Schinz@epfl.ch> writes:
>> Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de> writes:

>>> An alternative would be to require a "load-pkg.scm" file that is to be
>>> loaded in the exec package and could load the interface and structure
>>> definitions and in addition execute arbitrary code. I'm not sure if
>>> the additional power is needed but it's probably more flexible and
>>> could save the package author from defining one big package file.
>>
>> Right, that's a good idea. But then it's not compatible with scsh's
>> -ll option, it seems. (or we need to provide equivalents to -ll and
>> SCSH_LIB_DIRS that works for the exec package).
>
> Yes, we would need a new command line option (-lel ?) but we could use
> the library path for searching.
>
> Hmm, maybe it would be nice to have the set of options
>
>         -m <package>            Switch to package.
>         -config                 Switch to config package.
>         -exec                   Switch to exec package.
>         
>         -l  <file-name>         Load file into current package.
>         -ll <file-name>         As in -l, but search the library path list.
>  
>         -ds                     Do script.    (in current package)
>        
> instead of the current
>
>         -m <package>            Switch to package.
>
>         -lm <module-file-name>  Load module into config package.
>         -le <exec-file-name>    Load file into exec package.
>         -l  <file-name>         Load file into current package.
>
>         -ll <module-file-name>  As in -lm, but search the library path list.
>
>         -ds                     Do script.
>         -dm                     Do script module.
>         -de                     Do script exec.
>
> That is, to add the config and exec packages to the set of packages
> that can be "current" during command line evaluation and simply use -l
> to load a file into the current package. And -ll to load a file into
> the current package but search the library path for the file. Just a
> thought...

I would like to get some opinions about this issue because it might
makes sense to include support for searching exec scripts in 0.6.5.

The second proposal above is probably too incompatible to be
introduced now but adding -lel as an option too search the library
path for exec scripts is only a small extension. 

So please tell me if you would like to have this option in 0.6.5 or
not, or if you would prefer something different, for example a
separate list of directories or just a different name for the command
line option.


--
Martin


<Prev in Thread] Current Thread [Next in Thread>