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

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

[Octave-bug-tracker] [bug #49184] working directory removed from path af


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #49184] working directory removed from path after changing to a pathdef directory
Date: Mon, 26 Sep 2016 18:40:26 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Update of bug #49184 (project octave):

                Category:                    None => Interpreter            
                  Status:                    None => Confirmed              
                 Summary: working directory logic seems sometimes distorted =>
working directory removed from path after changing to a pathdef directory

    _______________________________________________________

Follow-up Comment #1:

I can reproduce this bug in one less step.

Simply create a script in the current directory, like


>> type good_script
good_script is the user-defined function defined from:
/home/mike/good_script.m

a = 12;



Then change the working directory to one of the directories that are in the
default path (pathdef). The working directory "." gets removed from path at
this point. Changing back to my home directory does not re-add it.


>> pwd
ans = /home/mike
>> s = strsplit (path, pathsep); s{1}
ans = .
>> cd /opt/gnu/octave/share/octave/4.2.0-rc2/m
>> cd
>> pwd
ans = /home/mike
>> s = strsplit (path, pathsep); s{1}
ans = /opt/gnu/octave/share/octave/4.2.0-rc2/m


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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