|
From: | Markus |
Subject: | Re: Matlab incompatibility: cd and which |
Date: | Mon, 14 Oct 2013 08:10:22 +0200 |
User-agent: | Roundcube Webmail/0.9.4 |
Am 2013-10-14 03:31, schrieb Michael Goffioul:
I noticed these 2 incompatibilities: 1) "which ... -all" is supposed to return a cell array of string, but does not. 2) "cd" without argument changes to home dir, while in Matlab it simply returns the current directory.
I've noticed this a long time ago too. But because this is obviously a bug in Matlab (in this case "cd" has the same functionality as "pwd". ChangeDir should change the directory and don't name the location where you are), i won't care about it.
cd /tmp pwd
ans = /tmp
cd
/tmp
s=pwd
s = /tmp
s=cd
s = /tmp
cd ~ % imho, this can/should be used if you want to write compatible code for matlab and octavepwd
ans = /home/markus cheers markus
[Prev in Thread] | Current Thread | [Next in Thread] |