You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backslash escaping has nothing to do with os.environ. It's the way
any string with a backslash in it is displayed in the interactive
interpreter (it's the way str.__repr__ works). Performing any escaping
on a string to make it usable in a command line is a task which is
inappropriate as a feature of os.environ. The contents of os.environ
are just strings. If you want to use them in a command line, you need
to escape them appropriately. Notice that in addition to escaping the
space, you may also sometimes need to escape a backslash (not in this
case on Windows, though, since a single \ is allowed here). The
escaping of the \ in this example is *only* in the *display* of the
variable - there is only one \ in the string itself.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: