We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 env var value begins with -
v3-set-env
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"
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"
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 JAVA_OPTS "\-Dconfig"
$ cf v3-set-env java_app ... User-Provided: JAVA_OPTS: "\\-Dconfig"
cf version 6.33.0+a345ea34d.2017-11-20
api endpoint: https://api_endpoint api version: 2.99.0
no stack trace available
Mac OS X 10.13.1 iTerm Build 3.1.5.beta.2
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Thanks! We've fixed the issue, will be in the next release.
Fixed in cf CLI 6.33.1. Thanks again for the report.
No branches or pull requests
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
cf v3-set-env java_app JAVA_OPTS "\-Dconfig"
works, but the CLI also adds the escape char to the env var,What you expected to occur
CLI Version
cf version 6.33.0+a345ea34d.2017-11-20
CC API Endpoint Version
CF Trace
no stack trace available
Platform & Shell Details
Mac OS X 10.13.1
iTerm Build 3.1.5.beta.2
The text was updated successfully, but these errors were encountered: