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: anonymous
Subject: [Octave-bug-tracker] [bug #45231] The run command does not return back to the originating directory
Date: Mon, 01 Jun 2015 22:17:04 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0

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

                 Summary: The run command does not return back to the
originating directory
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 01 Jun 2015 22:17:02 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Tasos Papastylianou
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0-rc4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The 'run' command should enter a directory, run a script, then return to the
calling directory. This is what is described in the documentation, and what
would be compatible behaviour with the matlab equivalent.
Instead what happens is that it enters a directory, runs the script, and then
stays there.

Trivial example:

pwd
mkdir 'Child Directory';
fh = fopen('./Child Directory/childscript.m','w');
fprintf(fh,'fprintf(''Hello from childscript\\n'');\n');
fclose(fh);
run './Child Directory/childscript';
pwd





    _______________________________________________________

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]