Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unexpected output file template formatting with dollar underscore in filename #26881
Comments
|
From your shell. |
|
Is Python buggy then since I'm passing
|
Checklist
Verbose log
Description
For some reason when using the
-otemplate option containing the$_substring, this substring is expanded to the path whereyoutube-dlscript lives. Changing the parameter todash.a$ _.mkvworks fine and will create a file nameddash.a$ _.mkv.I have checked the documented output template options and I see nothing about
$_being any escape sequence.I have also checked python string formatting operations and don't see any
$_formatting either.If instead of running the command I prefix the command with
echoto see what the bash interpreter understands, I get the expected output including the$_substring not being replaced:If I try to use
python3instead the bug happens as well, just with a different path being replaced:Adding dollar signs does not change the effect: the last
$_will still be replaced. However, adding underscores seems to not trigger the substitution, so a name likedash.a$__.mkvworks as expected.Where does the substitution come from?