Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add `--` instead of performing a short-circuit upon detecting a script-block.

オープン
#38 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

Issue にリンクされている Sudo マニュアルから始め、スクリプトブロックのコマンドライン処理と現在の短絡動作を追跡します。-- プレフィックスによって、明示的に指定されたスクリプトブロックをどのように区別すべきかを明らかにします。コマンドがその形式を受け入れ、スクリプトブロックを現在の短絡経路で実行しなくなれば完了です。

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

説明

Issue-Task
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 はありません

環境構築

はじめの一歩

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

microsoft/sudo のほかの issue

microsoft/sudo の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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