You are not logged in.
I need the the output of:
pacman -Qq | grep '*-git'
But it gives a no matches found error.
Meanwhile running only:
pacman -Qq | grep git
produces a boatload of packages including git, which is not desired for the output.
The only mentions about globs in the man page are about the --overwrite flag when upgrading.
And the only thread I find about pacman and globs is from 2004 where a developer says they're a work in progress.
https://bbs.archlinux.org/viewtopic.php … 036#p46036
Do pacman queries still not support globbing in 2023?
Offline
pacman -Qq | grep '*-git'
That's not how grep works. Globs and regular-expressions are not the same thing.
With that, pacman does not use (shell style) globs for searching, but can / does use regular expressions:
pacman -Qsq '.*-git'
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline