-
Notifications
You must be signed in to change notification settings - Fork 145
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
Change cmd
parameter in ExecuteProcess
#263
Comments
@hidmic FYI |
That solution seems reasonable to me. |
There's a bit of an issue with this change. We're essentially forcing shell-like parsing on otherwise plain command line arguments. And thus, something like |
I see. So, though it's true that it's not 100% backwards compatible, I think that the change is still reasonable and won't affect much users (and the ones affected should be able to fix the problem easily). |
|
Modified handling of cmd parameter as described in ros2#263 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org>
Modified handling of cmd parameter as described in ros2#263 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org>
Modified handling of cmd parameter as described in ros2#263 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org>
Modified handling of cmd parameter as described in ros2#263 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org>
Modified handling of cmd parameter as described in ros2#263 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org>
* Adding Executable description class Part of implementation of refactor for #114 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org> * Cleaned up access to substituted values Modified handling of cmd parameter as described in #263 Distro A; OPSEC #2893 Signed-off-by: Roger Strain <rstrain@swri.org> * Initial implementation of execute_local Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Fixed minor bugs to verify unit tests Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Unit test fixes Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Adjust for launch_ros modifications, add unit tests Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Apply minor updates to address feedback Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Refactor arguments to apply to executable Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Fix order of parameters Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Fixed default log name prefix Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Fix unit tests Distro A; OPSEC #4584 Signed-off-by: Roger Strain <rstrain@swri.org> * Removed some language from file headers Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <mlanting@dcscorp.com> * Add prefix filtering to Executable description class. Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <mlanting@dcscorp.com> * Formatting fixes. Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <mlanting@dcscorp.com> * Fixed indentation in descriptions/executable.py. Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <mlanting@dcscorp.com> * Fixed namechange missed during rebase. Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <mlanting@dcscorp.com> Co-authored-by: Roger Strain <rstrain@swri.org> Co-authored-by: matthew.lanting <mlanting@dcscorp.com>
Feature request
Feature description
The current format of
cmd
is a little confusing. e.g.:That is maybe not of much interest, but the following case:
It's not way of specifying more than one argument in that environment variable, e.g.:
That will make the program crash. The same problem applies for any substitution.
I don't see a possible workaround for that (without forcing shell=True).
My idea is to change the
cmd
type from:to:
And use
shlex.split
after the substitutions are performed.For backwards compatibility, we could accept both:
I realize about the problem while working in the launch frontend: #226 (comment).
The text was updated successfully, but these errors were encountered: