From command line, how to know which Firefox version is installed in windows/linux?

前端 未结 6 867
猫巷女王i
猫巷女王i 2021-01-01 11:14

I need to know which Firefox version is installed on my system from command line of Windows or Linux.

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-01 11:44

    According to this link, it seems that the -v argument (and more) is broken on Windows. If you follow the bug link on the site, it seems there is a workaround. I quote the comment:

    Workaround (works with Firefox, Thunderbird, and, I suppose, other programs too):

     -h | more
    

    The bug happens because, without redirection, the program releases its stdout before handling the -help parameter. With redirection, stdout is not released and you can see the output.

    So for example for Firefox:

    C:\Program Files (x86)\Mozilla Firefox>firefox -v | more
    Mozilla Firefox 3.6.13, Copyright (c) 1998 - 2010 mozilla.org
    

    It works for me at least. Without | more I get nothing printed. On Linux it works with or without the piping.

提交回复
热议问题