Closed Bug 1069261 Opened 10 years ago Closed 7 years ago

mozilla-build ls -l cannot handle meta characters in file names

Categories

(Firefox Build System :: MozillaBuild, task)

x86
Windows XP
task
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: anaran, Unassigned)

Details

While this example may be contrived, I just wanted to report this for others falling into this trap.

me@home:/c/tmp/git.mozilla.org/gecko-dev$ ls -l > /dev/null
ls: sed-n-r-e_s_+?([^?]+)?+__1_p_blame-js2txt-20140613T143250+0200.txt: No such file or directory
ls: sed-n-r-e_s_+?([^?]+)?+__1_p_blame-js2txt-20140613T143350+0200.txt: No such file or directory
ls: ?: No such file or directory
me@home:/c/tmp/git.mozilla.org/gecko-dev$

me@home:/cygdrive/c/tmp/git.mozilla.org/gecko-dev$ ls -l > /dev/null
me@home:/cygdrive/c/tmp/git.mozilla.org/gecko-dev$
me@home:/cygdrive/c/tmp/git.mozilla.org/gecko-dev$ ls -l ? sed-n-r-e_s_*
-rw-r--r-- 1 me Kein   4 Sep 18 13:41 ?
-rw-r--r-- 1 me Kein 181 Jun 13 14:32 sed-n-r-e_s_+<([^>]+)>+__1_p_blame-js2txt-20140613T143250+0200.txt
-rw-r--r-- 1 me Kein 181 Jun 13 14:33 sed-n-r-e_s_+<([^>]+)>+__1_p_blame-js2txt-20140613T143350+0200.txt
me@home:/cygdrive/c/tmp/git.mozilla.org/gecko-dev$
Interestingly, looking at these two file in Firefox at
file:///c:/tmp/git.mozilla.org/gecko-dev/
I see this in Page Source:

decodeURIComponent("sed-n-r-e_s_+%EF%80%BC%28%5B%5E%EF%80%BE%5D+%29%EF%80%BE+__1_p_blame-js2txt-20140613T143250+0200.txt")
"sed-n-r-e_s_+([^]+)+__1_p_blame-js2txt-20140613T143250+0200.txt"
I'm having a difficult time understanding what exactly this bug is reporting and what, if anything, is actionable here on our end. Can you please help clarify? Also, testing with the build below would be much appreciated (it includes updated MSYS components from what we've shipped in the past).
http://people.mozilla.org/~rvandermeulen/MozillaBuildSetup2.0.0pre3.exe
Flags: needinfo?(adrian.aichner)
The problem persists when I use MozillaBuildSetup2.0.0pre3.exe.

I was just reporting that some (admittedly weird) file names I was able to create cannot be displayed in this environment.

It's probably not worth pursuing this issue further. Perhaps someone else running into the same problem can take this up, if it proves to be a problem.
Flags: needinfo?(adrian.aichner)
If you're feeling *really* motivated, do you want to try downloading msys2 and see if the behavior differs there?
http://sourceforge.net/projects/msys2/
I can say with a high level of confidence that this isn't something we'll ever fix in MozillaBuild. The longer-term plan is to make WSL the primary supported build option and I would assume this'll Just Work then using the native ls binary.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.