Prev: autocorrelation
Next: resetting Gui Slider position
From: us on 13 May 2010 18:27 Loren Shure > Folks, this is a bug and not an intended behavior. It has been reported > and is not meant to be an incompatibility. Do note that using the > approach about getting the dir info into a struct and checking the isdir > field is robust despite this dir bug. loren??? i hope you don't mean to tell that the syntax dir *. is/was ever meant to just return subfolders... it's broken (yes, i tried it on a r2010a sys) as it does not do what the corresponding dos-dir syntax does... but by no means should people be let to believe now that, indeed, it returns subfolders... urs
From: dpb on 13 May 2010 20:52 Loren Shure wrote: > In article <hsfuub$dr6$1(a)news.eternal-september.org>, none(a)non.net > says... >> James wrote: >>> Despite the fact that this one guy has a strange proclivity for naming >>> folders such things as "foo.goo", the fact of the matter is that the >>> behaviour to the command "dir *." has changed in the latest Matlab >>> release from all prior releases. It is unfortunate that The Mathworks >>> places such low priority on maintaining backwards compatibility with >>> their products. >> I've complained of TMW breaking compatibility occasionally in the past >> but this is one that I can't elicit much sympathy for the user over -- >> the assumption that directories and only directories do not have >> extensions is wrong in general and so relying on that behavior was poor >> practice from the git-go despite it "working" for some special cases. >> .... > Folks, this is a bug and not an intended behavior. It has been reported > and is not meant to be an incompatibility. Do note that using the > approach about getting the dir info into a struct and checking the isdir > field is robust despite this dir bug. Yeah, I had my thinking crossed about the symptoms Derik was reporting. Realized later my foopah and agree the new behavior is broken (as well as being incompatible w/ previous versions :) ). --
From: Loren Shure on 14 May 2010 10:39 In article <hshubq$cu1$1(a)fred.mathworks.com>, us(a)neurol.unizh.ch says... > Loren Shure > > Folks, this is a bug and not an intended behavior. It has been reported > > and is not meant to be an incompatibility. Do note that using the > > approach about getting the dir info into a struct and checking the isdir > > field is robust despite this dir bug. > > loren??? > i hope you don't mean to tell that the syntax > dir *. > is/was ever meant to just return subfolders... > it's broken (yes, i tried it on a r2010a sys) as it does not do what the corresponding dos-dir syntax does... > but by no means should people be let to believe now that, indeed, it returns subfolders... > > urs > dir *. should NOT find only subfolders. -- Loren http://blogs.mathworks.com/loren http://matlabwiki.mathworks.com/MATLAB_FAQ
From: us on 14 May 2010 10:52
Loren Shure > dir *. should NOT find only subfolders. very good(!), loren... 'cause now we're back to the very beginning of this rather long dispute: original tone OP ....In my 2009a and previous version of matlab it always returned just the directories. Now it is returning everything... and all some of us said (and try to correct) was: this is NOT what this particular syntax is about... :-) urs |