`Popen()` list-argument pager process without shell=True by rolandwalker · Pull Request #3055 · pallets/click
changed the title
Popen() list-arg pager process without shell=TruePopen() list-argument pager process without shell=True
When the first argument to subprocess.Popen is a list, setting shell=True causes elements of the list to be discarded on POSIX platforms. Setting shell=False (the default) causes Popen() to invoke the first argument of the list and pass the rest of the arguments using "os.execvpe()-like behavior to execute the child program", per the subprocess docs at * https://docs.python.org/3/library/subprocess.html
This was referenced
Sep 29, 2025
github-actions
bot
locked as resolved and limited conversation to collaborators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters