Problem if there is a "(" in an url when trying open a tab in cli (-new-tab)
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?
Solution choisie
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"
Lire cette réponse dans son contexte 👍 0Toutes les réponses (2)
Solution choisie
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"
Sorry, I should have thought of it myself. It works with quotation. Thanks!