Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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

  • 2 respostas
  • 1 tem este problema
  • 4 visualizações
  • Última resposta por 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?

Solução escolhida

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"

Ler esta resposta no contexto 👍 0

Todas as respostas (2)

more options

Solução escolhida

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!