Silently ignores add of file "\\"

Bug #165151 reported by Jelmer Vernooij on 2007-11-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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

Related branches

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
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
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) on 2011-02-01
tags: added: filenames
Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-05-11
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer) on 2018-09-17
Changed in brz:
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 3.0.0
status: Triaged → In Progress
Jelmer Vernooij (jelmer) on 2018-09-17
Changed in brz:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer) on 2018-11-17
Changed in brz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers