+
Skip to content

Different parameter interpretation between shell and --exec (shell none) #12649

@arixmkii

Description

@arixmkii

Windows Version

Microsoft Windows [Version 10.0.26100.3194]

WSL Version

2.4.11.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.167.4-microsoft-standard-WSL2

Distro Version

Ubuntu 24.04.2 LTS

Other Software

No response

Repro Steps

Try to use ssh-keygen w/o passphrase.

Run:

wsl --exec ssh-keygen -t ed25519 -q -N "" -C user -f /tmp/user

Error:

The parameter is incorrect.
Error code: Wsl/Service/E_INVALIDARG

Originally this was discovered running the command programmatically spawning child process passing empty string as one of the args.

Expected Behavior

Using shell works as expected

wsl ssh-keygen -t ed25519 -q -N "" -C user -f /tmp/user

Output:

/tmp/user already exists.
Overwrite (y/n)? n

Actual Behavior

Error:

The parameter is incorrect.
Error code: Wsl/Service/E_INVALIDARG

Diagnostic Logs

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载