[pacman-dev] [PATCH] [INVALID] checkupdates: Add package download mode with "-d"

Chris Down chris at chrisdown.name
Fri Jan 17 00:39:41 EST 2014


On 2014-01-17 13:36:01 +0800, Chris Down wrote:
> +run_silent() {
> +	{
> +		(( silent )) && exec &>/dev/null
> +		"$@"
> +	}
> +}

Agh, this has a bug -- the exec call needs to be in a subshell with the
command, not just a command group. When I was writing the patch, this
wasn't in a function, and I guess I somehow changed them to curly braces
when I moved them up.

Another patch incoming. Sorry for the extra noise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/pacman-dev/attachments/20140117/bf21e9a1/attachment.asc>


More information about the pacman-dev mailing list