我想绕过Press return to continue.
一致的问题(当同步是初始同步时会发生这种情况。如果不是第一次,那么这个问题不会出现,expect
应该能够知道这一点并且什么都不做)。当这个问题出现时,应该输入空格expect
以让一致继续前进。
但我仍然希望能够为后续问题做出选择。
有谁知道如何实现这个目标expect
?谢谢。
$ unison -root o1 -root o2
Unison 2.51.2 (ocaml 4.08.1): Contacting server...
Looking for changes
Warning: No archive files were found for these roots, whose canonical names are:
/private/tmp/o1
/private/tmp/o2
This can happen either
because this is the first time you have synchronized these roots,
or because you have upgraded Unison to a new version with a different
archive format.
Update detection may take a while on this run if the replicas are
large.
Unison will assume that the 'last synchronized state' of both replicas
was completely empty. This means that any files that are different
will be reported as conflicts, and any files that exist only on one
replica will be judged as new and propagated to the other replica.
If the two replicas are identical, then no changes will be reported.
If you see this message repeatedly, it may be because one of your machines
is getting its address from DHCP, which is causing its host name to change
between synchronizations. See the documentation for the UNISONLOCALHOSTNAME
environment variable for advice on how to correct this.
Donations to the Unison project are gratefully accepted:
http://www.cis.upenn.edu/~bcpierce/unison
Press return to continue.[<spc>] Reconciling changes
o1 o2
file ----> x.txt [f] f
Proceed with propagating updates? [] y