Skip to content

env: -S / --split-string not work #177

Description

@Juemuren

Steps to reproduce

in cmd / powershell / pwsh:

> env -S "python --version"
env: 'python --version': No such file or directory

even in git-bash:

> coreutils env -S "python --version"
env: 'python --version': No such file or directory

Expected behavior

> env -vS "python --version"
split -S:  ‘python --version’
 into:    ‘python’
     &    ‘--version’
executing: python
   arg[0]= ‘python’
   arg[1]= ‘--version’

Actual behavior

> env -vS 'python --version'
executing: 'python --version'
   arg[0]= 'python --version'

Environment

OS: Windows 11 WIN32_NT 10.0.26200.9168
PowerShell: 5.1.26100.9168
Pwsh: 7.6.5
Git Bash: 5.3.15(1)-release (x86_64-pc-cygwin)
uutils/coreutils version: 2026.6.16
env version: 0.8.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions