Closed Bug 1815799 Opened 3 years ago Closed 3 years ago

Fix fzf preview on Windows

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(3 files)

Attached image image.png

See screenshot to what I see, both on msys and on mozillabuild.

Drive-by, while I was going through this code.

fzf doesn't quote the preview command arguments, so if you have
windows-style paths given to a unix-style shell, the slashes are
completely gone.

This happens on multiple systems, both with MozillaBuild and external
MSYS2 shell.

fzf respects the SHELL environment variable, so to fix it, execute the
command using cmd.exe on Windows, via $COMSPEC.

Depends on D169264

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c15a3c17288 Remove unused run_cmd function in fzf.py. r=firefox-build-system-reviewers,ahochheiden https://hg.mozilla.org/integration/autoland/rev/c4d83a6cced5 Fix fzf preview on Windows. r=firefox-build-system-reviewers,ahochheiden
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: