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

use single quote for cached environment values without old values #1108

Merged
merged 6 commits into from
Jul 24, 2020

Conversation

furushchev
Copy link
Contributor

Closes #1107

By applying this pull request, exported values of environment variables are quoted using single quote sign.
For variables for paths with old values, double quote sign is used as before.

@dirk-thomas
Copy link
Member

Thanks for the patch.

I changed the logic a bit to what I hope is more readable and expressive. Please double check if this looks fine to you and still works for your use case.

@dirk-thomas dirk-thomas merged commit 865f849 into ros:noetic-devel Jul 24, 2020
dirk-thomas added a commit that referenced this pull request Jul 24, 2020
)

* use single quote for cached environment values without old values

* add test for _set_variable with single_quote

* update environment cache to test variable value with dollar sign

* refactor logic

* update test accordingly

* fix tests

Co-authored-by: Dirk Thomas <[email protected]>
@dirk-thomas
Copy link
Member

Cherry-picked to kinetic-devel in 83ca0d2.

@furushchev
Copy link
Contributor Author

@dirk-thomas Sorry for the delay.
I confirmed that it works after pulled your fixes. (single/double quote are properly used)

# <catkin_ws>/build/test_pkg/catkin_generated/setup_cached.sh

...
export ROSCONSOLE_FORMAT='[${severity}] [${time}] [${node}:${logger}]: ${message}'
export ROSLISP_PACKAGE_DIRECTORIES="/home/furushchev/catkin_ws_debug/devel/.private/test_pkg/share/common-lisp:$ROSLISP_PACKAGE_DIRECTORIES"

@furushchev furushchev deleted the singlequote branch July 27, 2020 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console output on testing does not appear when ROSCONSOLE_FORMAT is set
2 participants