scsh-users
[Top] [All Lists]

Re: nesting package files, howto?

To: kelsey2@s48.org (Richard Kelsey)
Subject: Re: nesting package files, howto?
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Tue, 02 Apr 2002 17:36:38 +0200
Cc: scsh-news@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "RK" == Richard Kelsey <kelsey2@s48.org> writes:

RK> mmc@maruska.dyndns.org (Michal Maru?ka wrote in message 
news:<m24rivcjh1.fsf@linux11.maruska.tin.it>...
>> does the configuration language allow including other files (w/ the
>> configuration-language code)? i would like to keep separate files (for 
>> example
>> other people's package files), but still be able to load only the main one 
>> from
>> my scripts.

RK> There isn't any include mechanism.  You can load multiple configuration
RK> files by creating an exec file and loading that.  For example, if
RK> load-all.scm contains
>> (config)
>> (load "my-packages.scm")
>> (load "other-packets.scm")
RK> then 
>> ,exec ,load load-all.scm
RK> will load both package files.  I don't know how you would load a file
RK> into the exec package from a Scsh script.

The only way would be to make the underlying package USUAL-COMMANDS
the currrent package via "-m usual-commands" before loading the file,
but the CONFIG package doesn't seem to know about
USUAL-COMMANDS. Maybe we should add an option to scsh to switch to the
command execution package...

-- 
Martin

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