text: Title: Problems with `changedir` and carriage return
  Body: ## Issue
  
  A recent upgrade to `tox` makes all my installation environments fail. After digging, it turns out that the handling of `changedir` is buggy in the new versions of `tox` (>= 4). 
  
  In the following toy example it is creating folders with invalid names (spurious carriage return), which looks like it is trying to access a non-existing folder in my real setup.
  
  * tested and reproduced with `tox-4.0.4.dev1+gaadcbce` (from github) and `tox-4.0.3`.
  
  ## Environment
  
  Provide at least:
  
  - OS: Ubuntu 22.04
  - python 3.10
  - `pip list` of the host Python where `tox` is installed:
  
  ```console
  Package       Version
  ------------- -------
  cachetools    5.2.0
  chardet       5.1.0
  colorama      0.4.6
  distlib       0.3.6
  filelock      3.8.2
  packaging     22.0
  pip           22.0.2
  platformdirs  2.6.0
  pluggy        1.0.0
  pyproject_api 1.2.1
  setuptools    59.6.0
  tomli         2.0.1
  tox           4.0.3
  virtualenv    20.17.1
  ```
  
  (clean venv with only `tox`, switching back and forth to the master version from git).
  
  ## Output of running tox
  
  Provide the output of `tox -rvv`:
  
  ```console
  check_tox: 199 I find interpreter for spec PythonSpec(path=/data/code/reasonal/sandbox/venv_check_tox/bin/python3) [virtualenv/discovery/builtin.py:56]
  check_tox: 199 D discover exe for PythonInfo(spec=CPython3.10.6.final.0-64, exe=/data/code/reasonal/sandbox/venv_check_tox/bin/python3, platform=linux, version='3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) in /usr [virtualenv/discovery/py_info.py:437]
  check_tox: 200 D filesystem is case-sensitive [virtualenv/info.py:24]
  check_tox: 201 D Attempting to acquire lock 139710263612496 on /home/raffi/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.lock [filelock/_api.py:172]
  check_tox: 201 D Lock 139710263612496 acquired on /home/raffi/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.lock [filelock/_api.py:176]
  check_tox: 201 D got python info of /usr/bin/python3.10 from /home/raffi/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox: 202 D Attempting to release lock 139710263612496 on /home/raffi/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.lock [filelock/_api.py:209]
  check_tox: 202 D Lock 139710263612496 released on /home/raffi/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.lock [filelock/_api.py:212]
  check_tox: 202 I proposed PythonInfo(spec=CPython3.10.6.final.0-64, system=/usr/bin/python3.10, exe=/data/code/reasonal/sandbox/venv_check_tox/bin/python3, platform=linux, version='3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
  check_tox: 202 D accepted PythonInfo(spec=CPython3.10.6.final.0-64, system=/usr/bin/python3.10, exe=/data/code/reasonal/sandbox/venv_check_tox/bin/python3, platform=linux, version='3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
  check_tox: 236 I create virtual environment via CPython3Posix(dest=/data/code/sandbox/tox_example/.tox/check_tox, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
  check_tox: 236 D create folder /data/code/sandbox/tox_example/.tox/check_tox/bin [virtualenv/util/path/_sync.py:9]
  check_tox: 236 D create folder /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages [virtualenv/util/path/_sync.py:9]
  check_tox: 236 D write /data/code/sandbox/tox_example/.tox/check_tox/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
  check_tox: 236 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 236 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D 	version_info = 3.10.6.final.0 [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D 	base-executable = /usr/bin/python3.10 [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 237 D symlink /usr/bin/python3.10 to /data/code/sandbox/tox_example/.tox/check_tox/bin/python [virtualenv/util/path/_sync.py:28]
  check_tox: 237 D create virtualenv import hook file /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
  check_tox: 237 D create /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
  check_tox: 238 D ============================== target debug ============================== [virtualenv/run/session.py:50]
  check_tox: 238 D debug via /data/code/sandbox/tox_example/.tox/check_tox/bin/python /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
  check_tox: 238 D {
    "sys": {
      "executable": "/data/code/sandbox/tox_example/.tox/check_tox/bin/python",
      "_base_executable": "/data/code/sandbox/tox_example/.tox/check_tox/bin/python",
      "prefix": "/data/code/sandbox/tox_example/.tox/check_tox",
      "base_prefix": "/usr",
      "real_prefix": null,
      "exec_prefix": "/data/code/sandbox/tox_example/.tox/check_tox",
      "base_exec_prefix": "/usr",
      "path": [
        "/usr/lib/python310.zip",
        "/usr/lib/python3.10",
        "/usr/lib/python3.10/lib-dynload",
        "/data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages"
      ],
      "meta_path": [
        "<class '_virtualenv._Finder'>",
        "<class '_frozen_importlib.BuiltinImporter'>",
        "<class '_frozen_importlib.FrozenImporter'>",
        "<class '_frozen_importlib_external.PathFinder'>"
      ],
      "fs_encoding": "utf-8",
      "io_encoding": "utf-8"
    },
    "version": "3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]",
    "makefile_filename": "/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/Makefile",
    "os": "<module 'os' from '/usr/lib/python3.10/os.py'>",
    "site": "<module 'site' from '/usr/lib/python3.10/site.py'>",
    "datetime": "<module 'datetime' from '/usr/lib/python3.10/datetime.py'>",
    "math": "<module 'math' (built-in)>",
    "json": "<module 'json' from '/usr/lib/python3.10/json/__init__.py'>"
  } [virtualenv/run/session.py:51]
  check_tox: 274 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/raffi/.local/share/virtualenv) [virtualenv/run/session.py:55]
  check_tox: 276 D got embed update of distribution pip from /home/raffi/.local/share/virtualenv/wheel/3.10/embed/3/pip.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox: 279 D got embed update of distribution wheel from /home/raffi/.local/share/virtualenv/wheel/3.10/embed/3/wheel.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox: 280 D got embed update of distribution setuptools from /home/raffi/.local/share/virtualenv/wheel/3.10/embed/3/setuptools.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox: 280 D install pip from wheel /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
  check_tox: 281 D install wheel from wheel /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
  check_tox: 281 D Attempting to acquire lock 139710168482960 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:172]
  check_tox: 281 D install setuptools from wheel /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
  check_tox: 281 D Lock 139710168482960 acquired on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:176]
  check_tox: 282 D Attempting to acquire lock 139710168482192 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:172]
  check_tox: 282 D Attempting to acquire lock 139710168483344 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:172]
  check_tox: 282 D Attempting to release lock 139710168482960 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:209]
  check_tox: 282 D Lock 139710168482192 acquired on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:176]
  check_tox: 282 D Lock 139710168483344 acquired on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:176]
  check_tox: 282 D Lock 139710168482960 released on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:212]
  check_tox: 283 D Attempting to release lock 139710168482192 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:209]
  check_tox: 283 D Lock 139710168482192 released on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:212]
  check_tox: 283 D Attempting to release lock 139710168483344 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:209]
  check_tox: 283 D Lock 139710168483344 released on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:212]
  check_tox: 283 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
  check_tox: 283 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/wheel [virtualenv/util/path/_sync.py:36]
  check_tox: 284 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
  check_tox: 284 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
  check_tox: 286 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
  check_tox: 288 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/pip [virtualenv/util/path/_sync.py:36]
  check_tox: 292 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
  check_tox: 296 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
  check_tox: 298 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/wheel-3.10 to 775 [distlib/util.py:572]
  check_tox: 298 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/wheel3 to 775 [distlib/util.py:572]
  check_tox: 299 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/wheel to 775 [distlib/util.py:572]
  check_tox: 299 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/wheel3.10 to 775 [distlib/util.py:572]
  check_tox: 299 D generated console scripts wheel-3.10 wheel3 wheel3.10 wheel [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
  check_tox: 342 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
  check_tox: 352 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
  check_tox: 353 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
  check_tox: 354 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /data/code/sandbox/tox_example/.tox/check_tox/lib/python3.10/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
  check_tox: 355 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
  check_tox: 391 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/pip to 775 [distlib/util.py:572]
  check_tox: 392 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/pip3 to 775 [distlib/util.py:572]
  check_tox: 392 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/pip3.10 to 775 [distlib/util.py:572]
  check_tox: 392 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox/bin/pip-3.10 to 775 [distlib/util.py:572]
  check_tox: 392 D generated console scripts pip pip3.10 pip-3.10 pip3 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
  check_tox: 392 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
  check_tox: 396 D write /data/code/sandbox/tox_example/.tox/check_tox/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
  check_tox: 396 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 396 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 396 D 	version_info = 3.10.6.final.0 [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 396 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 396 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 397 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 397 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 397 D 	base-executable = /usr/bin/python3.10 [virtualenv/create/pyenv_cfg.py:34]
  check_tox: 401 W install_deps> python -I -m pip install unittest-xml-reporting==3.0.4 [tox/tox_env/api.py:398]
  Collecting unittest-xml-reporting==3.0.4
    Using cached unittest_xml_reporting-3.0.4-py2.py3-none-any.whl (19 kB)
  Installing collected packages: unittest-xml-reporting
  Successfully installed unittest-xml-reporting-3.0.4
  check_tox: 1760 I exit 0 (1.36 seconds) /data/code/sandbox/tox_example> python -I -m pip install unittest-xml-reporting==3.0.4 pid=230406 [tox/execute/api.py:275]
  check_tox: 1762 W commands[0] /data/code/sandbox/tox_example/check_tox> python -c 'import os;print(os.listdir('"'"'.'"'"'))' [tox/tox_env/api.py:398]
  ['test_tox']
  check_tox: 1784 I exit 0 (0.02 seconds) /data/code/sandbox/tox_example/check_tox> python -c 'import os;print(os.listdir('"'"'.'"'"'))' pid=230420 [tox/execute/api.py:275]
  check_tox: OK ✔ in 1.59 seconds
  check_tox-installation: 1789 I find interpreter for spec PythonSpec(path=/data/code/reasonal/sandbox/venv_check_tox/bin/python3) [virtualenv/discovery/builtin.py:56]
  check_tox-installation: 1789 D discover exe from cache /usr - exact False: PythonInfo({'architecture': 64, 'base_exec_prefix': '/usr', 'base_prefix': '/usr', 'distutils_install': {'data': '', 'headers': 'include/python3.10/UNKNOWN', 'platlib': 'lib/python3.10/site-packages', 'purelib': 'lib/python3.10/site-packages', 'scripts': 'bin'}, 'exec_prefix': '/usr', 'executable': '/data/code/reasonal/sandbox/venv_check_tox/bin/python3', 'file_system_encoding': 'utf-8', 'has_venv': True, 'implementation': 'CPython', 'max_size': 9223372036854775807, 'original_executable': '/usr/bin/python3.10', 'os': 'posix', 'path': ['/home/raffi/.local/share/virtualenv/unzip/20.13.0', '/data/programs/pycharm-community-2022.1.3/plugins/python-ce/helpers', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages'], 'platform': 'linux', 'prefix': '/usr', 'real_prefix': None, 'stdout_encoding': 'utf-8', 'sysconfig': {'makefile_filename': '/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/Makefile'}, 'sysconfig_paths': {'data': '{base}/local', 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'platlib': '{platbase}/local/lib/python{py_version_short}/dist-packages', 'platstdlib': '{platbase}/lib/python{py_version_short}', 'purelib': '{base}/local/lib/python{py_version_short}/dist-packages', 'scripts': '{base}/local/bin', 'stdlib': '{installed_base}/lib/python{py_version_short}'}, 'sysconfig_scheme': None, 'sysconfig_vars': {'PYTHONFRAMEWORK': '', 'abiflags': '', 'base': '/usr', 'installed_base': '/usr', 'platbase': '/usr', 'py_version_short': '3.10'}, 'system_executable': '/usr/bin/python3.10', 'system_stdlib': '/usr/lib/python3.10', 'system_stdlib_platform': '/usr/lib/python3.10', 'version': '3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]', 'version_info': VersionInfo(major=3, minor=10, micro=6, releaselevel='final', serial=0)}) [virtualenv/discovery/py_info.py:435]
  check_tox-installation: 1790 I proposed PythonInfo(spec=CPython3.10.6.final.0-64, system=/usr/bin/python3.10, exe=/data/code/reasonal/sandbox/venv_check_tox/bin/python3, platform=linux, version='3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
  check_tox-installation: 1790 D accepted PythonInfo(spec=CPython3.10.6.final.0-64, system=/usr/bin/python3.10, exe=/data/code/reasonal/sandbox/venv_check_tox/bin/python3, platform=linux, version='3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
  check_tox-installation: 1793 I create virtual environment via CPython3Posix(dest=/data/code/sandbox/tox_example/.tox/check_tox-installation, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
  check_tox-installation: 1793 D create folder /data/code/sandbox/tox_example/.tox/check_tox-installation/bin [virtualenv/util/path/_sync.py:9]
  check_tox-installation: 1794 D create folder /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages [virtualenv/util/path/_sync.py:9]
  check_tox-installation: 1794 D write /data/code/sandbox/tox_example/.tox/check_tox-installation/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
  check_tox-installation: 1794 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1794 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1794 D 	version_info = 3.10.6.final.0 [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1794 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1794 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1794 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1795 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1795 D 	base-executable = /usr/bin/python3.10 [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1795 D symlink /usr/bin/python3.10 to /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/python [virtualenv/util/path/_sync.py:28]
  check_tox-installation: 1796 D create virtualenv import hook file /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
  check_tox-installation: 1796 D create /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
  check_tox-installation: 1796 D ============================== target debug ============================== [virtualenv/run/session.py:50]
  check_tox-installation: 1797 D debug via /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/python /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
  check_tox-installation: 1796 D {
    "sys": {
      "executable": "/data/code/sandbox/tox_example/.tox/check_tox-installation/bin/python",
      "_base_executable": "/data/code/sandbox/tox_example/.tox/check_tox-installation/bin/python",
      "prefix": "/data/code/sandbox/tox_example/.tox/check_tox-installation",
      "base_prefix": "/usr",
      "real_prefix": null,
      "exec_prefix": "/data/code/sandbox/tox_example/.tox/check_tox-installation",
      "base_exec_prefix": "/usr",
      "path": [
        "/usr/lib/python310.zip",
        "/usr/lib/python3.10",
        "/usr/lib/python3.10/lib-dynload",
        "/data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages"
      ],
      "meta_path": [
        "<class '_virtualenv._Finder'>",
        "<class '_frozen_importlib.BuiltinImporter'>",
        "<class '_frozen_importlib.FrozenImporter'>",
        "<class '_frozen_importlib_external.PathFinder'>"
      ],
      "fs_encoding": "utf-8",
      "io_encoding": "utf-8"
    },
    "version": "3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]",
    "makefile_filename": "/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/Makefile",
    "os": "<module 'os' from '/usr/lib/python3.10/os.py'>",
    "site": "<module 'site' from '/usr/lib/python3.10/site.py'>",
    "datetime": "<module 'datetime' from '/usr/lib/python3.10/datetime.py'>",
    "math": "<module 'math' (built-in)>",
    "json": "<module 'json' from '/usr/lib/python3.10/json/__init__.py'>"
  } [virtualenv/run/session.py:51]
  check_tox-installation: 1830 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/raffi/.local/share/virtualenv) [virtualenv/run/session.py:55]
  check_tox-installation: 1834 D got embed update of distribution wheel from /home/raffi/.local/share/virtualenv/wheel/3.10/embed/3/wheel.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox-installation: 1834 D got embed update of distribution pip from /home/raffi/.local/share/virtualenv/wheel/3.10/embed/3/pip.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox-installation: 1834 D got embed update of distribution setuptools from /home/raffi/.local/share/virtualenv/wheel/3.10/embed/3/setuptools.json [virtualenv/app_data/via_disk_folder.py:129]
  check_tox-installation: 1835 D install wheel from wheel /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
  check_tox-installation: 1835 D install pip from wheel /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
  check_tox-installation: 1836 D Attempting to acquire lock 139710168493424 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:172]
  check_tox-installation: 1836 D install setuptools from wheel /data/code/reasonal/sandbox/venv_check_tox/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
  check_tox-installation: 1837 D Attempting to acquire lock 139710168494336 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:172]
  check_tox-installation: 1837 D Lock 139710168493424 acquired on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:176]
  check_tox-installation: 1837 D Lock 139710168494336 acquired on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:176]
  check_tox-installation: 1837 D Attempting to release lock 139710168493424 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:209]
  check_tox-installation: 1837 D Lock 139710168493424 released on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any.lock [filelock/_api.py:212]
  check_tox-installation: 1837 D Attempting to acquire lock 139710168494768 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:172]
  check_tox-installation: 1837 D Attempting to release lock 139710168494336 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:209]
  check_tox-installation: 1838 D Lock 139710168494768 acquired on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:176]
  check_tox-installation: 1838 D Lock 139710168494336 released on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any.lock [filelock/_api.py:212]
  check_tox-installation: 1838 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1838 D Attempting to release lock 139710168494768 on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:209]
  check_tox-installation: 1838 D Lock 139710168494768 released on /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any.lock [filelock/_api.py:212]
  check_tox-installation: 1839 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/wheel [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1839 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1840 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1841 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1842 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/pip [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1848 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1851 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1853 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/wheel-3.10 to 775 [distlib/util.py:572]
  check_tox-installation: 1853 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/wheel3 to 775 [distlib/util.py:572]
  check_tox-installation: 1854 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/wheel to 775 [distlib/util.py:572]
  check_tox-installation: 1854 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/wheel3.10 to 775 [distlib/util.py:572]
  check_tox-installation: 1854 D generated console scripts wheel3.10 wheel wheel-3.10 wheel3 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
  check_tox-installation: 1903 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1916 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1917 D copy directory /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1919 D copy /home/raffi/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /data/code/sandbox/tox_example/.tox/check_tox-installation/lib/python3.10/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
  check_tox-installation: 1920 D generated console scripts  [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
  check_tox-installation: 1952 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/pip to 775 [distlib/util.py:572]
  check_tox-installation: 1953 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/pip3 to 775 [distlib/util.py:572]
  check_tox-installation: 1953 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/pip3.10 to 775 [distlib/util.py:572]
  check_tox-installation: 1953 D changing mode of /data/code/sandbox/tox_example/.tox/check_tox-installation/bin/pip-3.10 to 775 [distlib/util.py:572]
  check_tox-installation: 1953 D generated console scripts pip3.10 pip-3.10 pip3 pip [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
  check_tox-installation: 1953 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
  check_tox-installation: 1955 D write /data/code/sandbox/tox_example/.tox/check_tox-installation/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
  check_tox-installation: 1955 D 	home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	version_info = 3.10.6.final.0 [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1955 D 	base-executable = /usr/bin/python3.10 [virtualenv/create/pyenv_cfg.py:34]
  check_tox-installation: 1957 W commands[0] /data/code/sandbox/tox_example/check_tox
  /data/code/sandbox/tox_example/check_tox> python -c 'import os;print(os.listdir('"'"'.'"'"'))' [tox/tox_env/api.py:398]
  []
  check_tox-installation: 1983 I exit 0 (0.02 seconds) /data/code/sandbox/tox_example/check_tox
  /data/code/sandbox/tox_example/check_tox> python -c 'import os;print(os.listdir('"'"'.'"'"'))' pid=230433 [tox/execute/api.py:275]
    check_tox: OK (1.59=setup[1.57]+cmd[0.02] seconds)
    check_tox-installation: OK (0.20=setup[0.17]+cmd[0.02] seconds)
    congratulations :) (1.84 seconds)
  ```
  
  ## Minimal example
  
  If possible, provide a minimal reproducer for the issue:
  
  ```console
  [tox]
  minversion = 4
  env_list = 
      check_tox
      check_tox{,-installation}
  skipsdist = true
  
  [default]
  deps            =
      unittest-xml-reporting==3.0.4
  
  changedir       =
      check_tox{,-installation}:        {toxinidir}/check_tox
  
  commands_pre    =
      # nothing
  
  commands        =
      python -m xmlrunner discover -vvv
  
  setenv          =
      #
  
  [testenv:check_tox]
  skip_install    = true
  changedir       = {[default]changedir}
  
  deps            =
      {[default]deps}
  
  commands_pre    =
      {[default]commands_pre}
  
  commands        =
      python -c "import os;print(os.listdir('.'))"
  
  setenv          =
      {[default]setenv}
  
  
  [testenv:check_tox-installation]
  skip_install    = true
  changedir       = {[default]changedir}
  
  commands        =
      python -c "import os;print(os.listdir('.'))"
  ```
  
  Prior to running `tox`:
  ```bash
  mkdir check_tox
  touch check_tox/test_tox
  ```
  
  The output of the execution of `tox` seems correct, but it is not: 
  
  * the environment `check_tox` goes properly to the folder `check_tox` and prints the content of that folder which is `test_tox`
  * the environment `check_tox-installation` does not return anything (empty list)
  
  Checking the project folder, we have this:
  
  ```bash
  > ls -a
  total 60
  drwxrwxr-x  5 raffi raffi  4096 Dec  8 20:31  .
  drwxr-xr-x 38 raffi raffi  4096 Dec  8 20:24  ..
  drwxrwxr-x  2 raffi raffi  4096 Dec  8 20:28  check_tox
  drwxrwxr-x  3 raffi raffi  4096 Dec  8 20:30 'check_tox'$'\n'
  -rw-rw-r--  1 raffi raffi 32983 Dec  8 20:31  output.txt
  drwxrwxr-x  4 raffi raffi  4096 Dec  8 20:31  .tox
  -rw-rw-r--  1 raffi raffi   794 Dec  8 20:30  tox_bug.ini
  ```
  
  As you can see above, there is a folder `'check_tox'$'\n'` (that I cannot delete from the terminal :) ) that is being created. I believe the environment `check_tox-installation` is creating this one (which I can confirm by running `tox -e check_tox-installation`, and this could explain why my real project installation is failing with a message like 
  
  ```bash
  /home/runner/work/repo/data_service> pip install '.[vendor]'
    dataservice-installation: FAIL code 2 (0.04=setup[0.04]+cmd[0.00] seconds)
    evaluation failed :( (0.10 seconds)
  Error: Process completed with exit code 2.
  ```
  
  as it thinks that the folder `data_service` does not exist.