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

Quoted arguments are not processed correctly #81

Closed
thesquelched opened this issue Jul 24, 2015 · 1 comment
Closed

Quoted arguments are not processed correctly #81

thesquelched opened this issue Jul 24, 2015 · 1 comment
Assignees

Comments

@thesquelched
Copy link

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']

@major major self-assigned this Jul 24, 2015
@major
Copy link
Owner

major commented Jul 24, 2015

Thanks for the report. I'll take a look at this one to see what I can figure out.

@major major closed this as completed in 412dd9c Jul 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants