Skip to content

Odd command line unquoting on non-windows system #37

Description

@FrBrGeorge

When using subcommand with path to solution's file name, the latter is doubly unquotted with no apparent reason.

E. g. runing
checkio run "src/Electronic Station/ascending_list.py"
or
checkio run src/Electronic\ Station/ascending_list.py
both ended with args.mission == ['src/Electronic'] and args.filename == 'Station/ascending_list.py'

Note both versions are automatically generated by bash/zsh command line Tab completion (with or without leading double quote).

The only way to make it work is to construct one of the natural command line and add extra quotation level like this (with both quotes and backslash) manually:
checkio run "src/Electronic\ Station/ascending_list.py"

I suggest to remove double unquotting mentioned above, and stand with simple call_args = sys.argv[1:]

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions