diff -ur v11/fsyn.py v12/fsyn.py --- v11/fsyn.py 2020-05-06 23:18:08.000000000 +0900 +++ v12/fsyn.py 2021-03-22 11:58:30.000000000 +0900 @@ -150,9 +150,17 @@ cmp.snap_new.write( fn ) add_chg = cmp.add + cmp.chg + + def to_str_paths( paths ): + def f( path ): + if any( map( lambda c: c in path, [ '(', ')', "'" ] ) ): + path = '"' + path + '"' + return path + return ' '.join( map( f, paths ) ) + if add_chg: fn = id_fn( id, 'update.tgz' ) - cmd = 'tar czf {} -C {} {}'.format( fn, dir_path, to_str( add_chg, delim=' ' ) ) + cmd = 'tar czf {} -C {} {}'.format( fn, dir_path, to_str_paths( add_chg ) ) cmd_call( cmd ) put_link( id, empty.new( from_=id_old, to=[] ) )