On Mon, Oct 5, 2009 at 9:23 AM, Randal L. Schwartz <[email protected]>wrote:
> >>>>> "Wilhelm" == Schwab,Wilhelm K <[email protected]> writes: > > Wilhelm> Understood - the question was (is?) whether or not Pharo should > Wilhelm> recognize it and act accordingly - I suspect the answer is no. > > It *should* be understood and interpreted in the same places where > '*' and '?' and '[]' are used for globbing, since it's effectively > a globbing character. > > So for example, presuming a hypothetical: > > '*.st' matchingFiles > > to return everything matching in the default directory, then: > > '~/foo' matchingFiles > > should return something relative to the home directory of the current user. > If I were implementing these I'd put them in a layer of abstraction above FileDirectory and friends; preferably in a separate package. This would also make it work on all OSes. Note that there's quite a few special characters in the userspace commands and they vary from shell to shell. Some of them are quite cool. I like "ls **" which lists a directory tree on some shells. Gulik. -- http://gulik.pbwiki.com/
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
