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

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

[Octave-bug-tracker] [bug #56471] Octave chanes the current directory af


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #56471] Octave chanes the current directory after a program is activated.
Date: Mon, 17 Jun 2019 12:05:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Update of bug #56471 (project octave):

              Depends on:                         => bugs #41275            

    _______________________________________________________

Follow-up Comment #4:

In your functions/player/fullPathMP3.m file, you have the line


  % Add "cd" to the "file.mp3"
  if(strcmp(slashstringn(path,lenp),path))
    path = strcat(cd,'\',path);
  end


and I would bet that is what is changing the directory because in Octave, cd
by itself changes to the users home directory instead of simply displaying the
current directory.

So, it looks the real problem is the same as bug #41275.  As I noted in
comment #7 of that report, I thought we had fixed the problem for function
calls like this, but I guess it was never done?  I will take another look at
it.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56471>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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