Bug in fullfile on windows
Bovey, Richard (UK)
Richard.Bovey at baesystems.com
Fri Feb 22 06:00:35 CST 2008
I think I have identified a bug in fullfile. Unfortunately bug_report()
did not work on my windows system.
The bug is that fullfile() fails this test:
assert (fullfile (filesep (), "foo"), strcat(filesep (),"foo"))
The bug causes a problem in that it fails to create a directory with the
following call on windows XP
mkdir(fullfile('\','folder'))
However either of the following calls work
mkdir('\folder')
mkdir(fullfile('\folder'))
Please find attached a modified fullfile.m which includes a fix and the
additional new test.
Regards,
Richard
--------------------------------------------
Richard Bovey
Higher Scientist
BAE SYSTEMS Advanced Technology Centre
Tel: +44 117 302 8239
VNET: 7754-8239
Email: richard.bovey at baesystems.com
-------------------------------------------
BAE Systems (Operations) Limited
Registered Office: Warwick House, PO Box 87, Farnborough Aerospace
Centre, Farnborough, Hants, GU14 6YU, UK
Registered in England & Wales No: 1996687
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080222/c7985d77/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fullfile.m
Type: application/octet-stream
Size: 2475 bytes
Desc: fullfile.m
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080222/c7985d77/attachment.obj
More information about the Bug-octave
mailing list