[aur-general] [pacman][Feature Request] make pacman case-insensitive.

Dave Reisner d at falconindy.com
Fri Oct 12 08:47:41 EDT 2012

On Fri, Oct 12, 2012 at 08:43:53PM +0800, Tianjiao Yin wrote:
> Hello, all:
> When we run "pacman -S Firefox", we will get "error: target not found:
> Firefox" because there is only firefox, not Firefox, in repo. IMHO it
> could be better if pacman is case insensitive.
> Regards,
> Mizuchi

Pardon? This is already the case:

$ pacman -Ssq FIREFOX | wc -l

Sure enough, we use case insensitive regex. From lib/libalpm/db.c:

  if(regcomp(&reg, targ, REG_EXTENDED | REG_NOSUB | REG_ICASE | REG_NEWLINE) != 0) {

Please make sure pacman isn't an alias or wrapper to some other program
that isn't pacman.


More information about the aur-general mailing list