sourcing PKG_ADD at startup failed
John W. Eaton
jwe at octave.org
Wed Jan 14 02:29:22 CST 2009
On 27-Nov-2008, Gregor Beck wrote:
| --------
| Bug report for Octave 3.0.1 configured for x86_64-pc-linux-gnu
|
| Description:
| -----------
|
| The automatic sourcing of PKG_ADD from the directory where octave is started fails.
| Also tested with version 3.1.51+
|
| Repeat-By:
| ---------
|
| $~> mkdir -p foo/bar
| $~> echo 'printf("hello\n")' > foo/PKG_ADD
| $~> echo 'addpath(fullfile(fileparts(mfilename("fullpath")),"bar"))' >> foo/PKG_ADD
| $~> cd foo
| $~/foo> octave
| GNU Octave, version 3.0.1
| Copyright (C) 2008 John W. Eaton and others.
| ...
| For information about changes from previous versions, type `news'.
|
| hello
| error: `fullfile' undefined near line 2 column 9
| error: evaluating argument list element number 1
| error: near line 2 of file `./PKG_ADD'
| error: source: error sourcing file `./PKG_ADD'
| error: near line 18 of file `/usr/share/octave/3.0.1/m/startup/octaverc'
| octave:1>
I think the following change will avoid this problem.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090114/6a08a1b1/attachment.ksh
More information about the Bug-octave
mailing list