[Top][All Lists]

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

Re: run command changes pwd?

From: Mike Miller
Subject: Re: run command changes pwd?
Date: Thu, 8 Dec 2016 13:55:44 -0800
User-agent: NeoMutt/20161104 (1.7.1)

On Thu, Dec 08, 2016 at 13:04:18 -0800, J.N. Stroh wrote:
> when i call the run command to execute a script, the working directory is
> changed to the path of the script.  is there any way of switching that
> behavior so that it behaves as expected, ie. that running a script in
> non-pwd will not alter pwd?

Yes, this is the expected behavior, in terms of Matlab compatibility.

If you just want to execute the contents of a file without changing the
directory, try source instead of run.


reply via email to

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