Mercurial > hg > octave-lyh
diff doc/interpreter/basics.texi @ 2701:cd5f72e530e2
[project @ 1997-02-19 19:15:40 by jwe]
author | jwe |
---|---|
date | Wed, 19 Feb 1997 19:16:17 +0000 |
parents | 8c7955a8d49f |
children | 19c45d29f177 |
line wrap: on
line diff
--- a/doc/interpreter/basics.texi +++ b/doc/interpreter/basics.texi @@ -252,20 +252,20 @@ @cindex startup files @table @code -@item OCTAVE_HOME/share/octave/site/m/startup/octaverc -Where @code{OCTAVE_HOME} is the directory in which all of Octave is -installed (the default is @file{/usr/local}). This file is provided so -that changes to the default Octave environment can be made globally for -all users at your site for all versions of Octave you have installed. -Some care should be taken when making changes to this file, since all -users of Octave at your site will be affected. +@item @var{OCTAVE_HOME}/share/octave/site/m/startup/octaverc +Where @var{OCTAVE_HOME} is the directory in which all of Octave is +installed (the default is @file{@value{OCTAVEHOME}}). This file is +provided so that changes to the default Octave environment can be made +globally for all users at your site for all versions of Octave you have +installed. Some care should be taken when making changes to this file, +since all users of Octave at your site will be affected. -@item OCTAVE_HOME/share/octave/VERSION/m/startup/octaverc -Where @code{OCTAVE_HOME} is the directory in which all of Octave is -installed (the default is @file{/usr/local}), and @code{VERSION} is the -version number of Octave. This file is provided so that changes to the -default Octave environment can be made globally for all users for a -particular version of Octave. Some care should be taken when making +@item @var{OCTAVE_HOME}/share/octave/@var{VERSION}/m/startup/octaverc +Where @var{OCTAVE_HOME} is the directory in which all of Octave is +installed (the default is @file{@value{OCTAVEHOME}}), and @var{VERSION} +is the version number of Octave. This file is provided so that changes +to the default Octave environment can be made globally for all users for +a particular version of Octave. Some care should be taken when making changes to this file, since all users of Octave at your site will be affected. @@ -358,16 +358,19 @@ @defvr {Built-in Variable} INFO_FILE The variable @code{INFO_FILE} names the location of the Octave info file. -The default value is @code{"@value{OCTAVEHOME}/info/octave.info"}. +The default value is @code{"@var{OCTAVE_HOME}/info/octave.info"}, where +@var{OCTAVE_HOME} is the directory where all of Octave is installed. @end defvr @defvr {Built-in Variable} INFO_PROGRAM The variable @code{INFO_PROGRAM} names the info program to run. Its initial value is -@code{@value{OCTAVEHOME}/libexec/octave/VERSION/exec/ARCH/info}, but -that value can be overridden by the environment variable -@code{OCTAVE_INFO_PROGRAM}, or the command line argument -@code{--info-program NAME}, or by setting the value of +@code{"@var{OCTAVE_HOME}/libexec/octave/@var{VERSION}/exec/@var{ARCH}/info"}, +where @var{OCTAVE_HOME} is the directory where all of Octave is +installed, @var{VERSION} is the Octave version number, and @var{ARCH} is +the machine type. The value of @code{INFO_PROGRAM} can be overridden by +the environment variable @code{OCTAVE_INFO_PROGRAM}, or the command line +argument @code{--info-program NAME}, or by setting the value of @code{INFO_PROGRAM} in a startup script. @end defvr @@ -1011,15 +1014,16 @@ @example @group -#! @value{OCTAVEHOME}/bin/octave -qf +#! /path/to/octave -qf # a sample Octave program printf ("Hello, world!\n"); @end group @end example @noindent -After making this file executable (with the @code{chmod} command), you -can simply type: +(where @code{/path/to/octave} should be replaced with the full file name +for your Octave binary). After making this file executable (with the +@code{chmod} command), you can simply type: @example hello @@ -1058,7 +1062,7 @@ @example @group -#! @value{OCTAVEHOME}/bin/octave -qf +#! /bin/octave -qf printf ("%s", program_name); for i = 1:nargin printf (" %s", argv(i,:));