Skip to content

Conversation

@tobert
Copy link
Contributor

@tobert tobert commented May 10, 2023

Required fixing the tests which quoted "echo hello world" as one argv, which never should have worked, but did because of sh -c.

This changes behavior in otel-cli to be more picky about how args are passed in. It might break some folks who are expecting sh -c behavior?

Gonna post the diffs/PR and have a discussion in #191.

Required fixing the tests which quoted "echo hello world" as one argv,
which never should have worked, but did because of sh -c.

This changes behavior in otel-cli to be more picky about how args are
passed in. It might break some folks who are expecting sh -c behavior?

Gonna post the diffs/PR and have a discussion in #191.
CliArgs: []string{
"exec", "--name", "outer", "--endpoint", "{{endpoint}}", "--fail", "--verbose", "--",
"./otel-cli", "exec", "--name", "inner", "--endpoint", "{{endpoint}}", "--tp-required", "--fail", "--verbose", "echo hello world"},
"./otel-cli", "exec", "--name", "inner", "--endpoint", "{{endpoint}}", "--tp-required", "--fail", "--verbose", "echo", "hello world"},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate changing the tests here but "echo hello world" was a horrible choice I made, and don't remember why.

@tobert tobert mentioned this pull request May 13, 2023
@tobert tobert merged commit b3e146d into main May 22, 2023
@tobert tobert deleted the 191-make-exec-args-precise branch May 22, 2023 20:34
shastah added a commit to shastah/otel-cli that referenced this pull request Aug 12, 2024
This example from README:
```
# otel-cli propagates context via envvars so you can chain it to create child spans
otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"
```
doesn't work, because we're running into equinix-labs#356.
It worked until `/bin/sh -c` was removed in equinix-labs#202.
shastah added a commit to shastah/otel-cli that referenced this pull request Aug 12, 2024
This example from README:

    # otel-cli propagates context via envvars so you can chain it to create child spans
    otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"

doesn't work, because we're running into equinix-labs#356.
It worked until `/bin/sh -c` was removed in equinix-labs#202.
ctreatma pushed a commit that referenced this pull request Jan 14, 2025
This example from README:

    # otel-cli propagates context via envvars so you can chain it to create child spans
    otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"

doesn't work, because we're running into #356.
It worked until `/bin/sh -c` was removed in #202.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants