shithub: rc

Download patch

ref: 877a056b011dc5df63df90ead759520bb3eeb423
parent: 050ecc1d5adebfd5fa33a243e151bf364223e845
author: qwx <qwx@sciops.net>
date: Sun Nov 1 14:35:39 EST 2020

syncab: quote file names and remove files in reverse order (for dirs)

--- a/syncab
+++ b/syncab
@@ -17,9 +17,9 @@
 }
 {
 	if($1 in rm)
-		ls["rm"] = ls["rm"] " " old "/" $2
+		ls["rm"] = "''" old "/" $2 "'' " ls["rm"]
 	else
-		ls["cp"] = ls["cp"] " " $2
+		ls["cp"] = ls["cp"] " " "''" $2 "''"
 	cnt[$1]++
 }
 END{