upload_and_run doesn't separate $command from first arg
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by locating the upload_and_run implementation and the code that assembles the remote command and its first argument. Reproduce the task from the issue on Rex 1.14.3, then verify that the command is separated correctly and the example returns the string "foo".
Written by the indexing model from the issue text.
Description
Describe the bug
When doing this:
my $output = upload_and_run <<~'BASH', 'foo';
#!/bin/bash
echo $1
BASH
...this produces an error, because it's trying to execute /tmp/${random_string}.tmpfoo on the server (observe that there's no space separating the command from the first argument).
Expected behavior
$output should equal the string foo
How to reproduce it
Write the code in the bug description inside a task, and see the error being output.
Code example
No response
Additional context
No response
Rex version
1.14.3
Perl version
v5.38.2
Operating system running rex
Void Linux
Operating system managed by rex
Debian
How rex was installed?
package manager
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RexOps/Rex
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
triage needed
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
triage needed
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
openfoodfacts/openfoodfacts-server#14724 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rubocop/ruby-style-guide#982 ·
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100