Add `--` instead of performing a short-circuit upon detecting a script-block.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- cli, operating-systems
調査の方向性
Issue にリンクされている Sudo マニュアルから始め、スクリプトブロックのコマンドライン処理と現在の短絡動作を追跡します。-- プレフィックスによって、明示的に指定されたスクリプトブロックをどのように区別すべきかを明らかにします。コマンドがその形式を受け入れ、スクリプトブロックを現在の短絡経路で実行しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description of the new feature / enhancement
Enhance sudo to recognize and support script blocks prefixed with --. Currently, the script will short-circuit and execute script blocks directly, leading to perhaps unexpected behavior. By introducing support for the -- prefix, users can clearly indicate when a following argument is a script block.
Scenario when this would be used?
One scenario where adding support for the -- argument for script blocks would be useful is when users need to pass a script block as an argument to the sudo command within a command line environment.
With the -- argument implemented, users can specify script blocks explicitly, ensuring that they are processed correctly by sudo. This can be particularly useful in automation scenarios, scripting tasks, or when invoking sudo from other scripts or tools where passing script blocks as arguments is necessary. Call it free will if you may.
Supporting information
- Sudo Manual -> Sudo
- 主要言語
- Rust
- スター
- 5.9k
- フォーク
- 179
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/sudo のほかの issue
-
Issue-Bug Needs-Triage
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
-
Issue-Bug Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
Issue-Feature Needs-Triage
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
Issue-Bug Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
-
Issue-Bug Needs-Triage
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
似ている issue
-
awaiting-response bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wildcard/caro#1562 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/sodg.rs#301 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
HakanSeven12/OpenCADStudio#1706 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Completion info popup (.cm-completionInfo) ignores the configured editor font対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rescript-lang/rescript#8765 ·
メンテナーはふだん 1 日以内に返信