[pacman-dev] bacman

Mark Constable markc at renta.net
Fri May 30 00:16:09 EDT 2008


On 2008-05-20, Allan McRae wrote:
> Well, if both DBPath and CacheDir _can not_ have spaces in them, this 
> can be simplified to (from earlier versions of the script):
> eval $(awk '/CacheDir/ {print $1$2$3}' /etc/pacman.conf)

FWIW this will do the same and takes care of a leading #.

eval $(sed -n 's:^#:: ;/CacheDir/ s: *::gp' /etc/pacman.conf)

--markc




More information about the pacman-dev mailing list