casey / just

🤖 Just a command runner
https://just.systems
Creative Commons Zero v1.0 Universal
21.02k stars 460 forks source link

Commandline arugument with URL that contains '&' is not recognized fully after '&' #1565

Open Irvingouj opened 1 year ago

Irvingouj commented 1 year ago
test test1 test2="awd":
    echo {{test1}} {{test2}}

this is the output

irving@irving-MS-7B47:~/jellyfin$ just test https://www.youtube.com/watch?v=MEOUyN7unpQ&list=RDMEOUyN7unpQ&start_radio=1
[1] 1021571
[2] 1021572
echo https://www.youtube.com/watch?v=MEOUyN7unpQ awd
[2]+  Done                    list=RDMEOUyN7unpQ

notice the 2nd and 3rd query parameters are gone.

runeimp commented 1 year ago

This is not likely a just issue. Wrap the URL in quotes. If this is on almost anything other than a official Windows shell the & is a special character that terminates a line and sends that freshly terminated line into a background process.