ref: eee7357c2778a65a3ecf552ac44b9a419e6e92d9
parent: 37e0d4ab29c8483aab727b76effaec009b650153
author: BurnZeZ <[email protected]>
date: Mon Jul 17 00:56:09 EDT 2017
hpost: delimit @filenames by newline so files with whitespace aren’t mangled
--- a/rc/bin/hpost
+++ b/rc/bin/hpost
@@ -67,7 +67,8 @@
}
for(i in $af){
k=`{sed 's!@.*$!!; q' /env/i}
- v=`{sed 's!^[^@]+@!!' /env/i}
+ ifs='
+' v=`{sed 's!^[^@]+@!!' /env/i}
t=`{file -m $v}
n=`{basename $v}
echo '--'$"f$"cr