Skip to main content
Add "print" example.
Source Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d -- <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 

or

print -rC1 -- <glob> 

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d -- <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d -- <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 

or

print -rC1 -- <glob> 
added 3 characters in body
Source Link
Stéphane Chazelas
  • 586.3k
  • 96
  • 1.1k
  • 1.7k

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d -- <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d -- <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 
added 71 characters in body
Source Link
enzotib
  • 53.4k
  • 14
  • 126
  • 106

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d <your-glob-here> 

I suspect the problem is not the zsh globbing, but the ls default behavior, that when given a directory argument list the content of directory.

I suggest to try

ls -d <your-glob-here> 

The best way to test your globs is with

printf '%s\n' <glob> 
Source Link
enzotib
  • 53.4k
  • 14
  • 126
  • 106
Loading