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

v3-set-env command unable to set value begins with - #1277

Closed
nusnewob opened this issue Nov 30, 2017 · 3 comments
Closed

v3-set-env command unable to set value begins with - #1277

nusnewob opened this issue Nov 30, 2017 · 3 comments
Labels

Comments

@nusnewob
Copy link

v3-set-env command unable to set env var value begins with -

Command

cf v3-set-env java_app JAVA_OPTS -Dconfig
cf v3-set-env java_app JAVA_OPTS \-Dconfig
cf v3-set-env java_app JAVA_OPTS "-Dconfig"

What occurred

Incorrect Usage: unknown flag `D'

cf v3-set-env java_app JAVA_OPTS "\-Dconfig" works, but the CLI also adds the escape char to the env var,

$ cf v3-set-env java_app
...
User-Provided:
JAVA_OPTS: "\\-Dconfig"

What you expected to occur

CLI Version

cf version 6.33.0+a345ea34d.2017-11-20

CC API Endpoint Version

api endpoint:   https://api_endpoint
api version:    2.99.0

CF Trace

no stack trace available

Platform & Shell Details

Mac OS X 10.13.1
iTerm Build 3.1.5.beta.2

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/153287218

The labels on this github issue will be updated when the story is started.

@dkoper
Copy link

dkoper commented Dec 9, 2017

Thanks! We've fixed the issue, will be in the next release.

@dkoper
Copy link

dkoper commented Dec 15, 2017

Fixed in cf CLI 6.33.1. Thanks again for the report.

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

No branches or pull requests

3 participants