This commit is contained in:
Kovid Goyal 2022-04-15 15:01:13 +05:30
parent 775584b5a5
commit aab9482e31
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -115,7 +115,7 @@ def quote_env_val(x: str, literal_quote: bool = False) -> str:
x = quote_pat.sub(r'\\\1', x)
x = x.replace('$', r'\$')
return f'"{x}"'
return f'{x}'
return f"'{x}'"
def serialize_env(literal_env: Dict[str, str], env: Dict[str, str], base_env: Dict[str, str], for_python: bool = False) -> bytes: