Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

wslvar returns "Parameter format not correct - /c" twice when ran #231

@shinji257

Description

@shinji257

Background Information:

  • Build: 22593.1
  • WSL: Ubuntu 20.04 and 22.04
  • Version: 0.58.0.0

Describe the bug
When running wslvar it is currently returning "Parameter format not correct - /c" twice. On 20.04 it does it no matter what and on 22.04 only when you have it translate a windows environment variable.

To Reproduce
On 20.04 just run it without options. On 22.04 run it with an environment variable like localappdata

Expected behavior
Either produce help context or output just the result.

Additional context
Currently the script still seems to work fine regardless of the messages. The messages are actually generated by chcp when the script calls the binary from the Windows side. I'm on Windows beta branch right now and there is a new WSL preview currently. I suspect it is a bug with the program running in WSL in general.

As of right now I commented out the function and the calls to the same function responsible for running chcp and there seems to be no negative impact to its operation as it still worked fine previously even with the issue. However, you may be able to provide some inside as to why the codepage is being changed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: PatchedThis is fixed and is part of a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions