Skip to content
Closed
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
3 changes: 2 additions & 1 deletion fire/console/console_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"""General console printing utilities used by the Cloud SDK."""

import os
import shlex
import signal
import subprocess
import sys
Expand Down Expand Up @@ -97,7 +98,7 @@ def More(contents, out, prompt=None, check_pager=True):
# Ignore SIGINT while the pager is running.
# We don't want to terminate the parent while the child is still alive.
signal.signal(signal.SIGINT, signal.SIG_IGN)
p = subprocess.Popen(pager, stdin=subprocess.PIPE, shell=True)
p = subprocess.Popen(shlex.split(pager), stdin=subprocess.PIPE)
enc = console_attr.GetConsoleAttr().GetEncoding()
p.communicate(input=contents.encode(enc))
p.wait()
Expand Down