wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.98k stars 263 forks source link

Extra output when run in subshell #242

Open ahmgithubahm opened 5 years ago

ahmgithubahm commented 5 years ago

Not sure if this is a bug 😄 but looks like it to me.

$ awless list instances --tag elasticbeanstalk:environment-name=Env-One-Dev --ids
i-0ebdb5ff9ded32771
$ awless list instances --tag elasticbeanstalk:environment-name=Env-One-Dev --ids | cat -
i-0ebdb5ff9ded32771
$ echo $(awless list instances --tag elasticbeanstalk:environment-name=Env-One-Dev --ids)
i-0ebdb5ff9ded32771 Env-One-Dev

The tag I'm filtering on erroneously appears in the output when awless is run in a subshell, but not when run interactively (piped or not).