Silently ignores add of file "\\"

Bug #165151 reported by Jelmer Vernooij
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Jelmer Vernooij

Bug Description

 affects bzr

bzr add will ignore a single backslash as argument. This character is,
however, not in my ignore list, as bzr status shows:

charis:/tmp% bzr init foo
charis:/tmp% cd foo
charis:/tmp/foo% touch \\
charis:/tmp/foo% ls -a
. .. .bzr \
charis:/tmp/foo% bzr add \\
charis:/tmp/foo% bzr ci -m "Add backslash"
Committing revision 1 to "/tmp/foo/".
bzr: ERROR: no changes to commit. use --unchanged to commit anyhow
charis:/tmp/foo% bzr st

Tags: filenames

Related branches

Revision history for this message
Alfonso de la Guarda Reyes (alfonsodg) wrote :

Is really important add a file which starts with a back slash symbol "\\"? The "problem" is still present in the last release however must be "fixed"?

Changed in bzr:
assignee: nobody → alfonsodg
status: New → Incomplete
Revision history for this message
James Westby (james-w) wrote :


This is a problem. Silently refusing to add it is wrong.



Changed in bzr:
assignee: alfonsodg → nobody
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

It is however a huge portability problem; I'm not sure that we can sensibly record \\ in filepaths - as on windows we can't tell foo\bar from foo/bar.

I'm not sure that it *is* being silently ignored so much as being turned into '.' or something similar.

Jelmer Vernooij (jelmer)
tags: added: filenames
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in brz:
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 3.0.0
status: Triaged → In Progress
Jelmer Vernooij (jelmer)
Changed in brz:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
Changed in brz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.