Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

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

  • 2 Antworten
  • 1 hat dieses Problem
  • 2 Aufrufe
  • Letzte Antwort von 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?

Ausgewählte Lösung

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"

Diese Antwort im Kontext lesen 👍 0

Alle Antworten (2)

more options

Ausgewählte Lösung

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!