endriu00 / opentab

opentab is the tab organizer boost you needed for CLI.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Add tab with ampersand #9

Open endriu00 opened 2 years ago

endriu00 commented 2 years ago

When adding tabs with the command opentab add group_name url1 if the url1 contains an & (which can often be true), the underlying shell in which opentab will run will split the url1 in two different commands:

endriu00 commented 2 years ago

The issue is not related to opentab but with the way the shell you are executing opentab on deals with the &. The best way to fix this behaviour is to be careful when adding URLs with the & in them.

A quick way to resolve the issue

Insert the URL containing the & in " ":

opentab add group_name "https://something.com/no&troubles&here"