in reply to Actual use cases for non-filename behaviour of glob?

> non-filename behaviour of glob

That's probably a misunderstanding, it's directly related to the behaviour of file-globs in Unix shells

Try something like ls *.{txt,bak} to see what I mean. (untested b/c on Win)

I used it sometimes in production code, and we already had several questions asking for easy permutation syntax.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Actual use cases for non-filename behaviour of glob?
by vrk (Chaplain) on Apr 10, 2017 at 14:52 UTC

    I'm not sure where the misunderstanding is. I often use the set (brace) notation in bash, e.g. when temporarily renaming files (mv file.name{,.old}). The question isn't about the glob syntax -- it's about being able to produce strings from a glob call that have nothing to do with files in the current directory.