We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdab890 commit 8069bb9Copy full SHA for 8069bb9
1 file changed
src/click/_termui_impl.py
@@ -697,6 +697,7 @@ def _unquote_file(url: str) -> str:
697
finally:
698
null.close()
699
elif WIN:
700
+ shell = False
701
if locate:
702
url = _unquote_file(url)
703
args = ["explorer", f"/select,{url}"]
@@ -706,8 +707,9 @@ def _unquote_file(url: str) -> str:
706
707
args.append("/WAIT")
708
args.append("")
709
args.append(url)
710
+ shell = True
711
try:
- return subprocess.call(args)
712
+ return subprocess.call(args, shell=shell)
713
except OSError:
714
# Command not found
715
return 127
0 commit comments