"which" can double filesep

Walt Ogburn ogburn at stanford.edu
Mon Dec 10 19:55:22 CST 2007


On Sunday 09 December 2007 11:05:33 pm John W. Eaton wrote:
> On  9-Dec-2007, Walt Ogburn wrote:
> | Subject: which can double filesep
> | --------
> | Bug report for Octave 2.9.12 configured for i486-pc-linux-gnu
> |
> | Description:
> | -----------
> |
> | If some directories on my path end with the filesep /, then "which"
> | will find function M-files in those directories, but it will return
> | a doubled filesep in those cases.  This breaks  consistency checks.
> |
> | Repeat-By:
> | ---------
> |
> | octave:1> addpath ('/home/reuben/')
> | octave:2> which ('foo')
> | foo is the user-defined function from the file
> | /home/reuben//foo.m
>
> Please try the following patch.
>
> Thanks,
>
> jwe

I confirm that fixes it.  Thanks.


More information about the Bug-octave mailing list