Open Bug 1569089 Opened 2 months ago Updated 11 days ago

The "-version" ("-v") command line option doesn't report version information when using cmd.exe

Categories

(Firefox :: General, defect, P2)

Unspecified
Windows
defect

Tracking

()

Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- affected
firefox68 --- wontfix
firefox69 --- fix-optional
firefox70 --- affected

People

(Reporter: yuki, Unassigned)

Details

(Keywords: regression)

Firefox supported a command line option "-version" (or "-v") to print its version, like:

> "c:\Program Files\Mozilla Firefox ESR60\firefox.exe" -version | more
Mozilla Firefox 60.7.2


> 

However the option looks unavailable on recent versions.

Steps to reproduce

  1. Install Nightly on Windows.
  2. Open cmd.exe.
  3. Type "c:\Program Files\Mozilla Nightly\firefox.exe" -version | more and run it.

Actual result

Just line breaks are printed and there is no version information, like:

> "c:\Program Files\Mozilla Nightly\firefox.exe" -version | more


> 

Expected result

A valid version information is printed like:

> "c:\Program Files\Mozilla Nightly\firefox.exe" -version | more
Mozilla Firefox 70.0a1


> 

Envrionment

  • Windows 10 1809 Pro
  • Firefox 67.0.1 (64bit)
  • Firefox ESR68.0 (64bit)
  • Nightly 70.0a1 (64bit) build ID: 20190725215157

I've confirmed that the option works with Firefox ESR60. Because mozregression is not usable for this case, the initial failure build is not determined yet.

I successfully got the expected output on the Windows PowerShell. On my environment this works as expected:

PS C:\Users\user> & 'C:\Program Files\Mozilla Firefox\firefox.exe' '-version' | more
Mozilla Firefox 68.0.1

So this looks a problem appearing only on the cmd.exe.

The priority flag is not set for this bug.
:Dolske, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dolske)
Flags: needinfo?(dolske)
Priority: -- → P3
Summary: The "-version" ("-v") command line option doesn't report version information → The "-version" ("-v") command line option doesn't report version information when using cmd.exe

Confirmed issue with 70.0a1 (2019-08-13) on Windows 10.
Hope this helps:

(In reply to Cristian Fogel, QA [:cfogel] from comment #5)

Confirmed issue with 70.0a1 (2019-08-13) on Windows 10.
Hope this helps:

Changes in that range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=69e9ee0ef3dd97a412d90be9c8377d660d08cbc2&tochange=5f519306c8bdf77c3236abcb626eacfe44c5e1f0

Priority: P3 → P2
You need to log in before you can comment on or make changes to this bug.