3 ms·
By default zsh will expand globs if you hit tab on the command line. However if you have more than a handful of matches it's going to be a suboptimal method of
by Adaptive 12y ago
By default zsh will expand globs if you hit tab on the command line.
However if you have more than a handful of matches it's going to be a suboptimal method of eyeballing the glob results.
I prefer to use `print -l` as it will break the glob results on separate lines.
An additional benefit of ZSH is that it will normally return each glob result as an independent item (this avoids the problem bash has with just returning strings that in turn are broken on IFS characters). Using that flag with print will give you a clear sense of the actual results.