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

RESOLVED WONTFIX

Status

mozilla.org
MozillaBuild
--
enhancement
RESOLVED WONTFIX
4 years ago
11 months ago

People

(Reporter: anaran, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
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$
(Reporter)

Comment 1

4 years ago
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)
(Reporter)

Comment 3

3 years ago
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
Last Resolved: 11 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.