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

Quoted arguments are not processed correctly #81

@thesquelched

Description

@thesquelched

Quoted arguments are not respected ever since a5e9c2a (when the click stuff was introduced, although click itself supports quoted arguments). It seems as though the quotes are stripped at some point, causing a variety of issues. For example:

Contents of $HOME/bin/quote:

#!/usr/bin/env python

import sys
print sys.argv

Contents of $HOME/.supernova (doesn't really matter, but just to illustrate that I have a valid config):

[dev]
FOO=bar

Running the script with two arguments works correctly, but if I use one quoted argument with a space in it, supernova still registers it as two arguments:

$ supernova -x quote dev foo bar
[SUPERNOVA] Running test against ord...
['/Users/thesquelched/bin/quote', 'foo', 'bar']

$ supernova -x quote dev "foo bar"
[SUPERNOVA] Running test against ord...
['/Users/thesquelched/bin/quote', 'foo', 'bar']

$ supernova -x quote dev 'foo bar'
[SUPERNOVA] Running test against ord...
['/Users/thesquelched/bin/quote', 'foo', 'bar']

Note that the result should be ['/Users/thesquelched/bin/quote', 'foo bar']

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions