octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45231] The run command does not return back t


From: Tasos Papastylianou
Subject: [Octave-bug-tracker] [bug #45231] The run command does not return back to the originating directory
Date: Tue, 02 Jun 2015 09:04:05 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Follow-up Comment #3, bug #45231 (project octave):

Hi Mike, thanks for the correction!

I was misled by the fact that strcmp(d,pwd) on line 70 of run.m was giving me
0, when it looked logical in the code that they should be the same, and they
did look the same by eye at a quick glance! Sorry, I should have confirmed
strcmp further!

The real culprit seems to be the canonicalize_file_name step on line 64,
combined with my use of 'Unix-style' file-separators on a windows machine.
This fails to correct the file separator just above the directory as you can
see below


d   = C:UserstasosDesktop/Child Directory
pwd = C:UserstasosDesktopChild Directory


therefore string comparison fails.

I fixed this on my system by adding a fullfile(d) instruction under line 64,
but I suppose someone should really fix this directly in the built-in
canonicalize_file_name function eventually!

Thanks for looking at this :)

PS. Is there a way to delete / strikethrough the previous patch?

(file #34148)
    _______________________________________________________

Additional Item Attachment:

File name: patch                          Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45231>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]