Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#65763 - Using shell commands in XferCommand fails

Attached to Project: Pacman
Opened by Chigozirim Chukwu (FirstAirBender) - Tuesday, 10 March 2020, 04:26 GMT
Last edited by Allan McRae (Allan) - Saturday, 02 May 2020, 04:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



The section for pacman Tips and Tricks mentions a way to use aria2 as a download tool for pacman. However, one of the alternative ways shows how to run the echo command first and then run aria2, but this does not work.

Additional info:
* package version(s)
pacman v5.2.1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Use the alternative configuration listed here:
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 02 May 2020, 04:26 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Working as intended
Comment by Eli Schwartz (eschwartz) - Wednesday, 25 March 2020, 20:07 GMT

This field is no longer interpreted as a system(2) command to be run in a shell, please use a wrapper script like /usr/local/bin/pacman-xfer-aria2-helper which performs the echo in question. Or this should work:

XferCommand = /bin/sh -c 'set -x; "$@"' _ aria2c --conf-path=/etc/pacman-aria2.conf %u


Do you really need the echo?