Weird argument passing when running shell commands

オープン
#3,875 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go, shell
領域
cli

調査の方向性

Ctrl-b で動作を再現し、echo "one" && echo "two" と date && date を使って実行します。シェルコマンドの実行経路を追跡し、その後、&& の後のコマンドが最初のコマンドへの引数として渡されるのではなく、個別に実行されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

I noticed that when the && operator is used in a shell command after Ctrl-b, it seems like everything after the && operator just gets passed as an argument to the previous command rather than those commands being executed separately.

For example, doing Ctrl-b and inputting echo "one" && echo "two" ends up printing one && echo two. This happens when doing things without the string literals as well- for example, running date && date has the first date command fail and print an "extra operand 'date'" error. These same issues happen with run.

I'm using version 2.0.15-dev.245, but it doesn't seem like any commits since this version have affected this issue.

主要言語
Go
スター
29.8k
フォーク
1.4k
平均マージ
1日 12時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micro-editor/micro のほかの issue

micro-editor/micro の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。