upload_and_run doesn't separate $command from first arg
まだ誰も着手していません。
評価
調査の方向性
まず、upload_and_run の実装と、リモートコマンドおよびその最初の引数を組み立てるコードを見つけます。Rex 1.14.3 で issue のタスクを再現し、その後、コマンドが正しく分割され、例が文字列 "foo" を返すことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Perl
- スター
- 737
- フォーク
- 214
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RexOps/Rex のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
triage needed
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
triage needed
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
Bug Priority
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
canonical/chisel-releases#1235 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
linuxmuster/sophomorix4#190 ·
-
documentation Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
trizen/youtube-viewer#456 ·