FS#1561 - Add globbing/regex support to pacman --sync

Attached to Project: Pacman
Opened by Judd Vinet (judd) - Friday, 01 October 2004, 21:53 GMT
Last edited by Simo Leone (neotuli) - Sunday, 15 October 2006, 17:29 GMT
Task Type Feature Request
Category
Status Assigned
Assigned To Aaron Griffin (phrakture)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 11
Private No

Details

eg, pacman -S fortune-mod*

I don't know if we'd need full regex support or not. Globbing might be sufficient.

This task depends upon

Comment by Jeff Mickey (codemac) - Saturday, 08 April 2006, 08:31 GMT
This should be a function of your shell in my opinion. I believe the bash-completion package can help you out with this specific example, and you can do this with some general zstyle stuff for zsh as well.
Comment by Dan McGee (toofishes) - Wednesday, 31 January 2007, 03:18 GMT
Should this be closed for the reasons codemac said above? The current bash completion script will do completion, but will not do globbing; each has to be typed. It also seems like a bad thing to encourage when operating as root- * expansion can be dangerous.
Comment by Aaron Griffin (phrakture) - Wednesday, 31 January 2007, 04:34 GMT
Actually, I wanted to implement fnmatch matching in addition to regex support (with an accompanying option, MatchType regex, MatchType glob, etc). That's why this is still open.

Shells don't glob this way. "foo*" will only work if the corresponding files are in the dir you're in. Otherwise 'foo*' is passed literally to pacman, in which case we should use fnmatch to figure out the proper packages.
Comment by Mauricio López Coria (damonh) - Tuesday, 14 September 2021, 13:35 GMT
Wildcards (globbing) should work by default!

Loading...