globbedWordTokens.add(wordToken);
return;
}
PathnamePattern pattern = PathnamePattern.compilePathPattern(word);
// Expand using the current directory as the base for relative path patterns.
LinkedList<String> paths = pattern.expand(new File("."));
// If it doesn't match anything, a pattern 'expands' to itself.
if (paths.isEmpty()) {
globbedWordTokens.add(wordToken);
} else {
for (String path : paths) {