"which" can double filesep
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Dec 10 01:05:33 CST 2007
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071210/0a7a8b4b/attachment.ksh
More information about the Bug-octave
mailing list