Discussion:
[unison-users] unison version 2.40.102: paths with inline comments get ignored
'Martin L.' ma.l@gmx.org [unison-users]
2017-02-02 16:20:30 UTC
Permalink
Dear Unison community,

when I put an inline-comment in a line, defining a "path" to
synchronise in a unison profile as follows:

path = uni # foobar

this path gets totally ignored without any sign or warnings. As I didn't
fine anything about prohibited inline commenting, so I report it here.


The profile looks as follows:

root = /home/ml/
root = ssh://***@HOST:PORT//users/XXXXXX/unixhome/
path = uni # foobar
path = .plan
times = true
group = false
owner = false
prefer = newer
log = true
sortnewfirst = false
addversionno = true

Unison gets called to synchronise two hosts, which are the following
ones. Please find below the output of unison-gtk -debug all (with
blackened vulnerable data)

--- Host 1 ---
$ unison-gtk -version
unison version 2.40.102

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie

$ uname -a
Linux XXX 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64
GNU/Linux


--- Host 2 ---
$ unison-gtk -version
unison version 2.40.102

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie

$ uname -a
Linux YYY 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux


$ unison-gtk -debug all
(process:17288): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[startup] Preferences:
ui = graphic
host =
server = false
prefsdocs = false
doc =
version = false
silent = false
dumbtty = false
testserver = false
rest = data_unixhome
showprev = false
selftest = false
confirmmerge = false
retry = 0
repeat =
contactquietly = false
key =
label =
expert = false
height = 15
auto = false
maxthreads = 0
prefer = newer
force =
sortnewfirst = false
sortbysize = false
keeptempfilesaftermerge = false
diff = diff -u CURRENT2 CURRENT1
backupdir =
maxbackups = 2
backups = false
backupsuffix =
backupprefix = .bak.$VERSION.
backuploc = central
copymax = 1
copyquoterem = default
copythreshold = -1
copyprogrest = rsync --partial --append-verify --compress
copyprog = rsync --partial --inplace --compress
rsync = true
fastcheck = default
ignorelocks = false
dumparchives = false
ignorearchives = false
showarchive = false
rootsName =
fat = false
allHostsAreRunningWindows = false
someHostIsRunningWindows = false
ignore = Path {XXXXXXXXXX}
ignore = Path {.screenrc}
ignore = Path {.bash_aliases}
ignore = Regex .*~$
ignore = Regex .*\.swp$
confirmbigdel = true
batch = false
path = uni # foobar
path = .plan
root = ssh://***@HOST:PORT/DIR2/
root = /home/ml/
killserver = false
halfduplex = false
stream = true
addversionno = true
servercmd =
sshargs =
rshargs =
rshcmd = rsh
sshcmd = ssh
xferbycopying = true
sshversion =
ignoreinodenumbers = false
links-aux = true
links = default
times = true
group = false
owner = false
numericids = false
dontchmod = false
perms = 1023
rsrc-aux = false
rsrc = default
maxerrors = 1
unicodeCS = false
unicodeEnc = false
unicode = default
someHostIsInsensitive = false
ignorecase = default
timers = false
terse = false
logfile = /home/ml/unison.log
log = true
debugtimes = false
debug = all
addprefsto =
[remote] Shell connection: ssh (ssh, -l, USER, -p, PORT, HOST,
-e, none, unison-2.40, -server) [globals] Checking path 'uni #
foobar' for expansions
[globals] Checking path '.plan' for expansions Connected
[//USER/DIR2 -> //HOST//home/ml]
[startup] Roots:
/home/ml
ssh://***@HOST:PORT/DIR
i.e.
/home/ml
ssh://***@HOST:PORT/DIR
i.e. (in canonical order)
/home/ml
//USER/DIR

[props] Setting permission mask to 1777 (1777 and 7777)
[stasher] initBackupsLocal
[stasher] d = /
[stasher] Prefix and suffix regexps for backup filenames have been updated
[server: stasher] initBackupsLocal
[server: stasher] d = /
[server: stasher] Prefix and suffix regexps for backup filenames have been updated
<>Starting new major GC cycle
!<>$[update] Loading archive from /home/ml/.unison/ar4fd7aa8e0e2f14c640da4f0e231c044b
Growing heap to 30504k bytes
Growing page table to 4096 entries
Growing page table to 8192 entries
Growing page table to 16384 entries
[server: update] Loading archive from /users/XXXXXXX/.unison/ar5e5ce79b3e5d9a0587bacb04f9144692
<>$Starting new major GC cycle
[server: update] Setting archive for //XXXXXXX//users/XXXXXXX/unixhome
Compacting heap...
done.
[update] Setting archive for //solaris//home/ml
[update] findOnRoot //XXXXXXX//users/XXXXXXX/unixhome
[update] findOnRoot /home/ml
[update] findLocal /home/ml
[fpcache] opening cache file /home/ml/.unison/fp4fd7aa8e0e2f14c640da4f0e231c044b for input
[fpcache] opening cache file /home/ml/.unison/fp4fd7aa8e0e2f14c640da4f0e231c044b for output
[pred] ignore '.plan' = false
[update] buildUpdate: /home/ml/.plan
[update] checkContentsChange: archStamp is inode (3146463) / info.inode (3146463) / times: 1486048168.000000 = 1486048168.000000... true / lengths: 47 - 47
[xferhint] insertEntry: fspath=/home/ml, path=.plan, fp=(a357571af8b1b06f7268b31de9cf939e,)
[pred] ignore 'uni # foobar' = false
[update] buildUpdate: /home/ml/uni\t\t# foobar
[update] buildUpdate -> Absent and no archive
[server: update] findLocal /users/XXXXXXX/unixhome
[server: fpcache] opening cache file /users/XXXXXXX/.unison/fp5e5ce79b3e5d9a0587bacb04f9144692 for input
[server: fpcache] opening cache file /users/XXXXXXX/.unison/fp5e5ce79b3e5d9a0587bacb04f9144692 for output
[server: pred] ignore '.plan' = false
[server: update] buildUpdate: /users/XXXXXXX/unixhome/.plan
[server: update] checkContentsChange: archStamp is inode (49704) / info.inode (49704) / times: 1486048168.000000 = 1486048168.000000... true / lengths: 47 - 47
[server: xferhint] insertEntry: fspath=/users/XXXXXXX/unixhome, path=.plan, fp=(a357571af8b1b06f7268b31de9cf939e,)
[server: pred] ignore 'uni # foobar' = false
[server: update] buildUpdate: /users/XXXXXXX/unixhome/uni\t\t# foobar
[server: update] buildUpdate -> Absent and no archive
[update] Setting archive for //solaris//home/ml
[server: update] Setting archive for //XXXXXXX//users/XXXXXXX/unixhome
[recon] reconcileAll
[recon] reconcile: 0 results
[update] Marking 0 paths equal
[ui] reset current to None
<>Starting new major GC cycle
!
--
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Adrian Klaver adrian.klaver@aklaver.com [unison-users]
2017-02-02 16:52:38 UTC
Permalink
Post by 'Martin L.' ***@gmx.org [unison-users]
Dear Unison community,
when I put an inline-comment in a line, defining a "path" to
path = uni # foobar
this path gets totally ignored without any sign or warnings. As I didn't
As I do not see it ignored as rewritten to something that is not found.
From further below:

"pred] ignore 'uni # foobar' = false
[update] buildUpdate: /home/ml/uni\t\t# foobar
[update] buildUpdate -> Absent and no archive"
Post by 'Martin L.' ***@gmx.org [unison-users]
fine anything about prohibited inline commenting, so I report it here.
http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#profile

"Whitespaces around p and xxx are ignored. A profile may also include
blank lines and lines beginning with #; both are ignored."

So a # can only be at beginning of line, otherwise it becomes part of
the setting.
Post by 'Martin L.' ***@gmx.org [unison-users]
root = /home/ml/
path = uni # foobar
path = .plan
times = true
group = false
owner = false
prefer = newer
log = true
sortnewfirst = false
addversionno = true
Unison gets called to synchronise two hosts, which are the following
ones. Please find below the output of unison-gtk -debug all (with
blackened vulnerable data)
--- Host 1 ---
$ unison-gtk -version
unison version 2.40.102
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie
$ uname -a
Linux XXX 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64
GNU/Linux
--- Host 2 ---
$ unison-gtk -version
unison version 2.40.102
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
$ uname -a
Linux YYY 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
$ unison-gtk -debug all
(process:17288): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
ui = graphic
host =
server = false
prefsdocs = false
doc =
version = false
silent = false
dumbtty = false
testserver = false
rest = data_unixhome
showprev = false
selftest = false
confirmmerge = false
retry = 0
repeat =
contactquietly = false
key =
label =
expert = false
height = 15
auto = false
maxthreads = 0
prefer = newer
force =
sortnewfirst = false
sortbysize = false
keeptempfilesaftermerge = false
diff = diff -u CURRENT2 CURRENT1
backupdir =
maxbackups = 2
backups = false
backupsuffix =
backupprefix = .bak.$VERSION.
backuploc = central
copymax = 1
copyquoterem = default
copythreshold = -1
copyprogrest = rsync --partial --append-verify --compress
copyprog = rsync --partial --inplace --compress
rsync = true
fastcheck = default
ignorelocks = false
dumparchives = false
ignorearchives = false
showarchive = false
rootsName =
fat = false
allHostsAreRunningWindows = false
someHostIsRunningWindows = false
ignore = Path {XXXXXXXXXX}
ignore = Path {.screenrc}
ignore = Path {.bash_aliases}
ignore = Regex .*~$
ignore = Regex .*\.swp$
confirmbigdel = true
batch = false
path = uni # foobar
path = .plan
root = /home/ml/
killserver = false
halfduplex = false
stream = true
addversionno = true
servercmd =
sshargs =
rshargs =
rshcmd = rsh
sshcmd = ssh
xferbycopying = true
sshversion =
ignoreinodenumbers = false
links-aux = true
links = default
times = true
group = false
owner = false
numericids = false
dontchmod = false
perms = 1023
rsrc-aux = false
rsrc = default
maxerrors = 1
unicodeCS = false
unicodeEnc = false
unicode = default
someHostIsInsensitive = false
ignorecase = default
timers = false
terse = false
logfile = /home/ml/unison.log
log = true
debugtimes = false
debug = all
addprefsto =
[remote] Shell connection: ssh (ssh, -l, USER, -p, PORT, HOST,
-e, none, unison-2.40, -server) [globals] Checking path 'uni #
foobar' for expansions
[globals] Checking path '.plan' for expansions Connected
[//USER/DIR2 -> //HOST//home/ml]
/home/ml
i.e.
/home/ml
i.e. (in canonical order)
/home/ml
//USER/DIR
[props] Setting permission mask to 1777 (1777 and 7777)
[stasher] initBackupsLocal
[stasher] d = /
[stasher] Prefix and suffix regexps for backup filenames have been updated
[server: stasher] initBackupsLocal
[server: stasher] d = /
[server: stasher] Prefix and suffix regexps for backup filenames have been updated
<>Starting new major GC cycle
!<>$[update] Loading archive from
/home/ml/.unison/ar4fd7aa8e0e2f14c640da4f0e231c044b
Growing heap to 30504k bytes
Growing page table to 4096 entries
Growing page table to 8192 entries
Growing page table to 16384 entries
[server: update] Loading archive from
/users/XXXXXXX/.unison/ar5e5ce79b3e5d9a0587bacb04f9144692
<>$Starting new major GC cycle
[server: update] Setting archive for //XXXXXXX//users/XXXXXXX/unixhome
Compacting heap...
done.
[update] Setting archive for //solaris//home/ml
[update] findOnRoot //XXXXXXX//users/XXXXXXX/unixhome
[update] findOnRoot /home/ml
[update] findLocal /home/ml
[fpcache] opening cache file
/home/ml/.unison/fp4fd7aa8e0e2f14c640da4f0e231c044b for input
[fpcache] opening cache file
/home/ml/.unison/fp4fd7aa8e0e2f14c640da4f0e231c044b for output
[pred] ignore '.plan' = false
[update] buildUpdate: /home/ml/.plan
[update] checkContentsChange: archStamp is inode (3146463) / info.inode
(3146463) / times: 1486048168.000000 = 1486048168.000000... true /
lengths: 47 - 47
[xferhint] insertEntry: fspath=/home/ml, path=.plan,
fp=(a357571af8b1b06f7268b31de9cf939e,)
[pred] ignore 'uni # foobar' = false
[update] buildUpdate: /home/ml/uni\t\t# foobar
[update] buildUpdate -> Absent and no archive
[server: update] findLocal /users/XXXXXXX/unixhome
[server: fpcache] opening cache file
/users/XXXXXXX/.unison/fp5e5ce79b3e5d9a0587bacb04f9144692 for input
[server: fpcache] opening cache file
/users/XXXXXXX/.unison/fp5e5ce79b3e5d9a0587bacb04f9144692 for output
[server: pred] ignore '.plan' = false
[server: update] buildUpdate: /users/XXXXXXX/unixhome/.plan
[server: update] checkContentsChange: archStamp is inode (49704) /
info.inode (49704) / times: 1486048168.000000 = 1486048168.000000...
true / lengths: 47 - 47
[server: xferhint] insertEntry: fspath=/users/XXXXXXX/unixhome,
path=.plan, fp=(a357571af8b1b06f7268b31de9cf939e,)
[server: pred] ignore 'uni # foobar' = false
[server: update] buildUpdate: /users/XXXXXXX/unixhome/uni\t\t# foobar
[server: update] buildUpdate -> Absent and no archive
[update] Setting archive for //solaris//home/ml
[server: update] Setting archive for //XXXXXXX//users/XXXXXXX/unixhome
[recon] reconcileAll
[recon] reconcile: 0 results
[update] Marking 0 paths equal
[ui] reset current to None
<>Starting new major GC cycle
!
--
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
--
Adrian Klaver
***@aklaver.com


------------------------------------

------------------------------------


------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/unison-users/join
(Yahoo! ID required)

<*> To change settings via email:
unison-users-***@yahoogroups.com
unison-users-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
unison-users-***@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/
worley@alum.mit.edu [unison-users]
2017-02-02 18:53:39 UTC
Permalink
Post by 'Martin L.' ***@gmx.org [unison-users]
when I put an inline-comment in a line, defining a "path" to
path = uni # foobar
There are no "inline comments" in Unison profile files. See, e.g.,

https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#profile

A profile may also include blank lines and lines beginning with #;
both are ignored.

What you've specified is a path whose name contains 9 letters, 4 spaces,
and the character #.

Dale

Loading...