From 19281cfd4786d6c220c706aa45db829f3085621d Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Wed, 6 Nov 2013 01:24:28 +0100 Subject: [PATCH] BUG/MINOR: avoid bashism in system() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Other shell than >=bash-4 and dash does not support '&>' I/O redirection. Introduce in commit v0.17.0-1871-g18cbd6f « While at it, I also fixed the piping of stdout and stderr to be nicer. » --- src/bin/e_sys_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_sys_main.c b/src/bin/e_sys_main.c index edbb70da4..baf018bf8 100644 --- a/src/bin/e_sys_main.c +++ b/src/bin/e_sys_main.c @@ -172,7 +172,7 @@ main(int argc, "-ex 'set logging file %s' " "-ex 'set logging on' " "-ex 'thread apply all backtrace full' " - "-ex detach &> /dev/null < /dev/zero", + "-ex detach > /dev/null 2>&1 < /dev/zero", cmd, pid, output ?: "e-output.txt");