spawnGroup: option to run in the user's login shell
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 40/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash, typescript, zsh
- Lĩnh vực
- tooling
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Running a command the way the user's terminal would (PATH, aliases) via spawnGroup is easy to get wrong:
- zsh
-l -calone doesn't load the user's PATH here;-l -i -cdoes. - 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.
- Ngôn ngữ chính
- TypeScript
- Star
- 44
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của githubnext/superego
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
githubnext/superego#8 ·
-
Extension test kit papercutsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
githubnext/superego#7 ·
-
Docs: folder-scoped live valuesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
githubnext/superego#6 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
githubnext/superego#5 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
githubnext/superego#4 ·
Tất cả issue của githubnext/superego
Issue tương tự
-
Blocklist addition requestĐang mởblocklist addition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
MetaMask/eth-phishing-detect#319194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
continuedev/continue#13533 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
bug codex:automation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
genfeedai/genfeed.ai#12060 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bounty good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fitzss/valun-open#15 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày