spawnGroup: option to run in the user's login shell

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
40/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bash, typescript, zsh
領域
tooling

調査の方向性

Start with spawnGroup and the run extension, which already prefixes set +m; trap 'exit 143' TERM; to work around job control and SIGTERM handling. Then find the user-shell helper inside the terminal extension and decide whether to export it or add a shell: 'login' option. Done means a command spawned with the login-shell option sees the user's PATH and aliases, background jobs stop with the group, and loops exit on SIGTERM. The maintainers have not picked between the two API options, so confirm that before writing code.

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

説明

Running a command the way the user's terminal would (PATH, aliases) via spawnGroup is easy to get wrong:

  • zsh -l -c alone doesn't load the user's PATH here; -l -i -c does.
  • But an interactive shell enables job control, so background jobs get their own process group and escape a group stop.
  • Interactive shells ignore SIGTERM, so a loop only dies at the SIGKILL after the grace period.

The run extension prefixes set +m; trap 'exit 143' TERM; to fix both. The terminal extension already has a user-shell helper internally; exposing it, or a shell: 'login' option on spawnGroup, would save every extension from rediscovering this.

主要言語
TypeScript
スター
44
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

githubnext/superego のほかの issue

githubnext/superego の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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