shithub: tlsclient

Download patch

ref: f7392e7bb314888c91d081ae0428c657a7f2d4bc
parent: f135790674c19ee86976e5d7a112c3d937ee269b
author: Jacob Moody <moody@posixcafe.org>
date: Sun Feb 21 07:31:31 EST 2021

Remove unportable process substitution

--- a/9cpu
+++ b/9cpu
@@ -32,10 +32,11 @@
 
 len=`echo $cmd | wc -c`
 
-USER=$user AUTH=$auth CPU=$cpu tlsclient -p 17019 sh <(cat <<EOF
-printf '%7ld\n' $len
-echo $cmd
+cmd=`cat <<EOF
+printf '%7ld\n' $len;
+echo $cmd;
 cat </dev/tty 2>/dev/null &
-cat >/dev/tty 2>/dev/null
+cat >/dev/tty 2>/dev/null;
 EOF
-)
+`
+USER=$user AUTH=$auth CPU=$cpu tlsclient -p 17019 sh -c "$cmd"