Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List-style commands ignore all but [0] element #58

Closed
chris-greenlight opened this issue Aug 23, 2018 · 2 comments
Closed

List-style commands ignore all but [0] element #58

chris-greenlight opened this issue Aug 23, 2018 · 2 comments

Comments

@chris-greenlight
Copy link

chris-greenlight commented Aug 23, 2018

I would except cmd2 to work and cmd1 to fail.

Both run -- cmd1 running the whole command line, and cmd2 just its first list element (no "-ltr").

cmd1 = 'ls -ltr'
cmd2 = ['ls', '-ltr']

print delegator.run(cmd1).out
total 148
-rw-r--r-- 1 chris 1414874935 128653 Aug 22 14:12 dump.txt
-rw-r--r-- 1 chris 1414874935 224 Aug 22 14:32 9655bd19-f3ab-4db0-b3bd-c9fa7f895b78
-rw-r--r-- 1 chris 1414874935 224 Aug 22 14:32 2c9165d7-5a14-4c09-b23f-7c21d2923466
...

print delegator.run(cmd2).out
dump.txt
9655bd19-f3ab-4db0-b3bd-c9fa7f895b78
2c9165d7-5a14-4c09-b23f-7c21d2923466
...

delegator v0.10.0 in Python 2.7.15

@ParthS007
Copy link

Closing due to inactivity 👍

@xrobin
Copy link

xrobin commented Jan 29, 2020

Why was this issue closed? The bug is clearly still not fixed, I can trivially reproduce it with Python 3.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants