From bug-octave-request at bevo dot che dot wisc dot edu Sun Dec 21 10:04:40 2003 Subject: [p,f,e]=fileparts('test/dir.001/file') returns empty f From: "John W. Eaton" To: Schloegl Alois Cc: bug-octave at bevo dot che dot wisc dot edu Date: Sun, 21 Dec 2003 09:57:55 -0600 On 20-Dec-2003, Schloegl Alois wrote: | Bug report for Octave 2.1.52 configured for i686-pc-linux-gnu | | Description: | ----------- | | The output of FILEPARTS is incorrect, if any directory name contains a dot and | the file has no extension. | | | Repeat-By: | --------- | | | octave:13> [p,f,e]=fileparts('test/dir.001/filename'), ### note the file has no | extension | p = test/dir.001 | f = | e = .001/filename | | | Fix: | --- | | This patch solves the problem. Thanks, I applied this change. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------