Works perfectly here.disciple wrote:It seems the solution doesn't work if I try to use it with xdg-open
Please check your xdg-open script. Mine accepts only 1 argument ($1), which in your case would be the URL..
[Edit]: Hmm..I tried to let xdg-open accept '>/dev/null' as an argument and trigger your error message. No success. Whatever I do your code just works
I don't think that bash would treat any redirection operator as a command argument (unless you pass is literally as a string).