`Popen()` list-argument pager process without shell=True by rolandwalker · Pull Request #3055 · pallets/click

@rolandwalker changed the title Popen() list-arg pager process without shell=True Popen() list-argument pager process without shell=True

Sep 4, 2025

@Rowlando13 Rowlando13 linked an issue

Sep 13, 2025

that may be closed by this pull request

@rolandwalker

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

@Rowlando13

This was referenced

Sep 29, 2025

@github-actions github-actions bot locked as resolved and limited conversation to collaborators

Oct 9, 2025