On Tue, Feb 21, 2012 at 11:56 AM, Liam Groener
<address@hidden> wrote:
On Feb 20, 2012, at 3:26 PM, Muhali wrote:
n unix shells one has the command 'cd -' which brings one back to the
previous directory.
Is there anything like that in octave? And if not, is it easy to implement?
cd ..
works for me just like in unix. Maybe it goesn't work in Windows, if that is what you are using? (I'm on a Mac, but I've got to believe it works in linux too.)
Liam
Hi Liam,
"cd .." is not the same functionality as "cd -". Observe:
address@hidden:~$ pwd
/home/joannac
address@hidden:~$ cd test1/test2/
address@hidden:~/test1/test2$ cd -
/home/joannac
address@hidden:~$ cd -
/home/joannac/test1/test2
It seems to have a limited memory (it only remembers the immediately previous point in the directory tree you were in).
I am not sure if Muhali requires this specific functionality, however.
Thanks,
Joanna