@@ 21,6 21,9 @@ void
main(int argc, char *argv[])
{
enum {Direct, Proto} mode = Direct;
+
+ quotefmtinstall();
+
ARGBEGIN{
case 'a':
archival = 1; break;
@@ 47,14 50,16 @@ main(int argc, char *argv[])
void
mkdir(char *dst, Dir *)
{
- print("mkdir -p %s\n", dst);
+ print("mkdir -p %#q\n", dst);
}
void
cp(char *src, char *dst, Dir *)
{
static int N = 0;
- print("test %s -nt %s && fcp %s %s &\n", src, dst, src, dst);
+ if(update)
+ print("test %#q -nt %#q && ", src, dst);
+ print("fcp %#q %#q &\n", src, dst);
if(N++ % 8 == 0)
print("wait\n");
}