broken handling of properly quoted relative paths

Martin Steigerwald Martin at lichtvoll.de
Fri Jun 22 09:48:36 BST 2007


Am Freitag 22 Juni 2007 schrieb Martin Steigerwald:
> 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...

Hello!

Well also with absolute pathnames this won't work:

martin at shambala:/> find /home/martin/ -type 
d -and -name ".bzr" -printf "%h\n" | xargs -n1 -i{} echo bzr check \"{}\"
bzr check "/home/martin/Geburtstag 2007"
bzr check "/home/martin/.crm114"
bzr check "/home/martin/Computer/Mondschein/Konfiguration/etc"
bzr check "/home/martin/Linux/LUSC/WorkshopWeekend2006/Automatische 
[...]

martin at shambala:/> find /home/martin/ -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"/


But without quotes it will work... Well that seems broken to me ;-). At 
least it should work with properly quoted paths as well IMHO ;-)

Regards,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070622/21c1bd77/attachment-0001.pgp 


More information about the bazaar mailing list