I get the error
xonsh: subprocess mode: permission denied: sudo.
It's a bug in
xonsh. In the
xonsh attempts to determine if a file is "binary" or not by opening it and reading a few bytes:
def _is_binary(fname, limit=80): with open(fname, 'rb') as f: for i in range(limit): char = f.read(1) if char == b'\0': return True if char == b'\n': return False if char == b'': return False return False
Security sensitive programs like
sudo are often executable but not readable, so this blows up.