octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab incompatibility: cd and which


From: Michael Goffioul
Subject: Re: Matlab incompatibility: cd and which
Date: Mon, 14 Oct 2013 07:51:39 -0400

On Mon, Oct 14, 2013 at 3:16 AM, c. <address@hidden> wrote:

On 14 Oct 2013, at 03:31, Michael Goffioul <address@hidden> wrote:

> 2) "cd" without argument changes to home dir, while in Matlab it simply returns the current directory.

this has been discussed before, it was decided to follow the more consistent
bash behaviour of cd rather than the strange behaviour chosen by Matlab.

I figured this must have been discussed before, I just didn't remember it. I just happened to bump into a toolbox that uses of handful of "cd()" to retrieve the current directory, leading to unexpected behavior on octave.

Note that the "cd()" behavior in Matlab is consistent with the CD command in a windows command prompt. I suppose it's where this inconsistent-under-unix behavior is coming from.

Michael.


reply via email to

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