搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Problem if there is a "(" in an url when trying open a tab in cli (-new-tab)

  • 2 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 lz

more options

If there is a "(" in an url when trying open a tab in cli (-new-tab) I get the answer: bash: syntax error near unexpected token `('

Example: try 'firefox -new-tab https://en.wikipedia.org/wiki/Bernicia_(disambiguation)'

Any idea?

If there is a "(" in an url when trying open a tab in cli (-new-tab) I get the answer: bash: syntax error near unexpected token `(' Example: try 'firefox -new-tab https://en.wikipedia.org/wiki/Bernicia_(disambiguation)' Any idea?

被采纳的解决方案

What if you quote the URL?

firefox.exe -new-tab "https://en.wikipedia.org/wiki/Bernicia_(disambiguation)"

Otherwise, you might need to encode it in some manner? For example:

firefox.exe -new-tab "https://en.wikipedia.org/wiki/Bernicia_%28disambiguation%29"

定位到答案原位置 👍 0

所有回复 (2)

more options

选择的解决方案

What if you quote the URL?

firefox.exe -new-tab "https://en.wikipedia.org/wiki/Bernicia_(disambiguation)"

Otherwise, you might need to encode it in some manner? For example:

firefox.exe -new-tab "https://en.wikipedia.org/wiki/Bernicia_%28disambiguation%29"

more options

Sorry, I should have thought of it myself. It works with quotation. Thanks!