broken handling of properly quoted relative paths
Kent Gibson
warthog618 at gmail.com
Fri Jun 22 10:20:46 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Martin,
This is not a bzr problem.
Quoting is a shell solution to a shell problem (working around the
fact that shell uses spaces to separate arguments).
The problem you have here is that you are quoting an argument that
doesn't require quoting.
The command line you are after is:
~>find -type d -and -name .bzr -printf "%h\n" | xargs -n1 -I{} bzr
check {}
Note the lack of quotes around the final {}.
xargs will replace the {} and treat the replacement string as a single
argument when it execs bzr.
Cheers,
Kent.
Martin Steigerwald wrote:
> Hi!
>
> I am a new subcriber to this list... I have written a Bazaar article for
> german Linux-Magazin. I posted about it here some time ago. I use Bazaar
> regularily and really like it.
>
> However today I found a slight problem:
>
> martin at shambala:~> find -type d -and -name ".bzr" -printf "%h\n" |
> xargs -n1 -i{} echo bzr check \"{}\"
> bzr check "./Geburtstag 2007"
> bzr check "./.crm114"
> bzr check "./Computer/Mondschein/Konfiguration/etc"
> bzr check "./Linux/LUSC/WorkshopWeekend2006/Automatische
> Netzwerk-Konfiguration"
> [...]
>
> IMHO should not lead to:
>
> martin at shambala:~> find -type d -and -name ".bzr" -printf "%h\n" |
> xargs -n1 -i{} bzr check \"{}\"
> bzr: ERROR: Not a branch: /home/martin/"./Geburtstag 2007"/
> bzr: ERROR: Not a branch: /home/martin/"./.crm114"/
> bzr: ERROR: Not a
> branch: /home/martin/"./Computer/Mondschein/Konfiguration/etc"/
> bzr: ERROR: Not a
> branch: /home/martin/"./Linux/LUSC/WorkshopWeekend2006/Automatische
> Netzwerk-Konfiguration"/
>
> When expanding path names Bazaar should take quotes into respect. Without
> Quotes it won't work here, cause some directory names contains spaces.
>
> Will work around this now... and tell you why I actually want to check all
> my Bazaar repos...
>
> Regards,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGe5RtgoxTFTi1P8QRAhQ9AJ4tVV7IrLu1rN/IC41GbkArdvVBCgCfeiHP
5uxB6pnlUaxUyxQL1jKev6g=
=xkML
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list