#444 closed defect (fixed)
It seems impossible to specify for mondo a path to include with "-I" CLI option if name contains spaces
Reported by: | Talamona Francesco | Owned by: | Bruno Cornec |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.9.5 |
Component: | mondo | Version: | 2.2.9.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
From a recent thread on the mailing list:
The command line option "-I" doesn't know how to handle spaces in folder names:
I can back up a folder if I'm in it:
cd /home/alex/Spass\ und\ Hobby/Musik mondoarchive -Oi -I . -d /tmp
this command works, but is unclear how to pass the include path, mondo claims that cannot find the folder to include if I try to specify the folder explicitly
I use a simple script to run mondoarchive, so I did some more testing with the syntax used (and proven to be correct) there:
INCLDIR="/home/alex/Spass\ und\ Hobby/Musik" mondoarchive -Oi -I "${INCLDIR}" -d /tmp
doesn't work, but
mondoarchive -Oi -I /home/alex/ -E "${INCLDIR}" -d /tmp
works. So the same syntax that's ok for the -E switch isn't accepted for -I
As a side note it's interesting that -I ""/home/alex/Spass und Hobby/Musik"" and -I /home/alex/Spass und Hobby/Musik both give a segmentation fault.
Mondo version used for testing: 2.2.9.4.1
Change History (5)
comment:1 by , 13 years ago
Milestone: | → 2.2.9.5 |
---|
comment:3 by , 13 years ago
Tose problems are fixed as of rev [2714]. I produced a new gentoo package for you to test. At ftp://ftp.mondorescue.org/test gentoo/nover/i386/mondo-2.2.9.5_p20110202123354.ebuild gentoo/nover/i386/mindi-2.0.7.6_p20110202123354.ebuild
WARNING: Syntax of excluded dir has then changed: Instead of having space separated dirs, you now need to have them pipe-separated:
-E "/path to 1|/path to 2"
Please report back your findings.
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Should be fixed in 2.2.9.5 official. Please reopen if not.
comment:5 by , 13 years ago
Right now I'm unable to check, due to other open issues. I'll check ASAP, in the meantime I consider it fixed.
Checked with latest testing version, the issue is present, this is the errore message:
But when I'm in the folder to backup and run mondo with:
In spite of the "syntax error near unexpected token" the backup runs.