Mercurial > hg > ishara
annotate general/popd.m @ 8:f0a3d7d7a0e3
Renamed cat_sep function to catsep
author | samer |
---|---|
date | Mon, 14 Jan 2013 14:54:10 +0000 |
parents | e44f49929e56 |
children |
rev | line source |
---|---|
samer@4 | 1 function D=popd |
samer@4 | 2 % popd: Pop directory off stack |
samer@4 | 3 % dirname=popd: pop and return directory name |
samer@4 | 4 % popd: pop directory and cd into it. |
samer@4 | 5 global DirStack |
samer@4 | 6 d=DirStack{1}; |
samer@4 | 7 DirStack=DirStack{2}; |
samer@4 | 8 if nargout<1, cd(d); else D=d; end |