Am Donnerstag, 6. März 2014, 21:49:26 schrieb Marcos Cruz: > I use Gforth 0.7.2, compiled from sources. > > I supposed </usr/local/share/gforth/site-init/siteinit.fs> is used for > general configuration, but I've written some code in it and nothing > happens (the file permissions are OK). It seems this file is not > included during the boot.
Indeed, it is loaded during compilation of the image. > I've found this in the info: > > Not yet implemented: On startup the system first executes the system > initialization file (unless the option `--no-init-file' is given; > note that the system resulting from using this option may not be ANS > Forth conformant). Then the user initialization file `.gforth.fs' is > executed, unless the option `--no-rc' is given; this file is searched > for in `.', then in `~', then in the normal path (see above). > > Is <siteinit.fs> the mentioned system initialization file? But > '.included' shows a <siteinit.fs> at the end of the list. I've searched > </usr/local/share/gforth> and there's no other <siteinit.fs>. Yes. But as you see in the documentation, this is not yet implemented as intented. > Will <./.gforth.fs> and <~/.gforth.fs> be implemented in version 0.8? Yes, but probably a bit different. The current git HEAD system includes ~/.gforthrc, no option is there to disable this, and it yet doesn't include siteinit.fs. > This feature will make it easier to distribute programs, because there > will be a standard user configuration file that will be always > interpreted no matter where the sources of the program are stored. Yes, indeed. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
signature.asc
Description: This is a digitally signed message part.
