revert emacs code, omit newline in args file so languages stop seeing a blank arg

This commit is contained in:
Brian Seymour 2021-01-21 19:38:00 -06:00
parent 9237806dee
commit 6d69a1b189
2 changed files with 2 additions and 6 deletions

View File

@ -22,7 +22,7 @@ mkdir -p $basepath/tmp/$epoch
chmod 777 $basepath/tmp/$epoch
cat $2 > $basepath$filepath
echo $3 > $basepath$stdinpath
echo "${@:4}" > $basepath$argpath
echo -n "${@:4}" > $basepath$argpath
# process incrementor
exec 200>$dir/lockfile

View File

@ -1,8 +1,4 @@
#!/bin/bash
cd /tmp/$2
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
timeout -s KILL 3 xargs -a args.args -d '\n' emacs -Q --script code.code < stdin.stdin