> However it seems strange to me why the original lines like e.g.
> load('SCI/macros/mtlb/lib'), which goes before the declaration of
> SCI=getenv('SCI') works?
load("SCI/...") passes a string to the load internal instruction
SCI=getenv("SCI") retrieves the environment variable named SCI and puts its
value into a Scilab variable named SCI.
load() does not need to know Scilab variables, it can parse a string and
substitute internally the special character string SCI to its value.
SCI is a shortcut for "the folder where Scilab was installed".
> There exists no directory namned SCI so I
> suppose the function load() has to somewhat interpret it. So why
> couldn't add_help_chapter do that too?
Because it was not supposed to do it.
The user initialisation scripts such as the instructions you add in
scilab.star are not supposed to be added in this file in fact, but rather in
a user initialisation file. See help startup for details.
> Secondly, it seems that the function initial_help_chapters()
> overwrites everything in the help so that it is no point adding your
> own help chapters before that line. Is that right?
It can be, I didn't check. This is indeed no so surprising that function
*initial*_help_chapters resets the help chapters, while *add*_help_chapter
does not, don't you think so?
Again, you're not supposed to fiddle in scilab.star but to have your own
init script.
> I tried to write
> "help initial_help_chapters" at the scilab prompt but the function
> wasn't documented.
IMO this can be considered as a bug, please file a bug report:
http://www.scilab.org/cgi-bin/bugzilla_bug_II/index.cgi
Francois
Markus - 28 Feb 2008 17:50 GMT
Okey, I didn't even know I could have some kind of own ini file! In
fact I think I searched for an *.ini file in the scilos directory but
found nothing. Then I saw the .star mentioned somewhere I thought that
was the scilos equavilent. And I had no idea that startup would have
been the word to serach for in the help. So thanks for the tip!
I don't think it's obivous that the function initial_help_characters
resets the help chapters. It depends on how it works (which I don't
know as a new user to scilab). If e.g. the help chapters of a former
instance of scilab persists after you've closed the program, you
should of course not add the initial help chapter once again when
starting the program next time. However, that still doesn't mean you
have to remove other already existing help chapters. Anyhow, it
doesn't really matters as long as you can read how it works. So now I
will try to file a bug report.
Thanks!