From 8db0dc0b6d8cb7f6c8ad7a44224a83ecf60760f7 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Thu, 21 Jan 2021 19:32:43 -0600 Subject: [PATCH] dont use xargs for elisp if no args were passed --- lxc/executors/emacs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lxc/executors/emacs b/lxc/executors/emacs index ab41624..bf586e4 100755 --- a/lxc/executors/emacs +++ b/lxc/executors/emacs @@ -1,4 +1,8 @@ #!/bin/bash cd /tmp/$2 -timeout -s KILL 3 xargs -a args.args -d '\n' emacs -Q --script code.code < stdin.stdin +if [[ -z $(grep '[^[:space:]]' args.args) ]]; then + timeout -s KILL 3 emacs -Q --script code.code < stdin.stdin +else + timeout -s KILL 3 xargs -a args.args -d '\n' emacs -Q --script code.code < stdin.stdin +fi