Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/click/_termui_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ def _unquote_file(url: str) -> str:
finally:
null.close()
elif WIN:
shell = False
if locate:
url = _unquote_file(url)
args = ["explorer", f"/select,{url}"]
Expand All @@ -706,8 +707,9 @@ def _unquote_file(url: str) -> str:
args.append("/WAIT")
args.append("")
args.append(url)
shell = True
try:
return subprocess.call(args)
return subprocess.call(args, shell=shell)
except OSError:
# Command not found
return 127
Expand Down
Loading