Red Hat Bugzilla – Bug 201087
Search path seems not to understand "~" properly
Last modified: 2007-11-30 17:11:39 EST
Description of problem:
Adding some local library, relative to $HOME, with the new method:
results in unusable libraries/functions under $HOME/octave
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Create a directory, i.e $HOME/octave/libs
Put a function, as .m file, in "libs", for example "test.m":
function answer = test( n )
answer = 1;
for i = 2:n
answer = answer * i;
Start octave and add the path with:
Try tu execute "test(4)" (or any other number).
error: no such file, `/home/user/~/octave/libs/test.m'
error: `test' undefined near line 2 column 1
ans = 24
Using the full path "/home/user/octave" works fine.
It seems the "~" is expanded, but somehow not removed, thus
interfering with the execution.
This should be fixed in the new 2.9.7-3 release.