Skip to content

feat(userland): environment defaults in init and stlxterm - #139

Merged
FlareCoding merged 1 commit into
masterfrom
pr/userland-env-defaults
Jul 30, 2026
Merged

feat(userland): environment defaults in init and stlxterm#139
FlareCoding merged 1 commit into
masterfrom
pr/userland-env-defaults

Conversation

@FlareCoding

Copy link
Copy Markdown
Owner

Summary

  • With envp plumbing in place, nothing seeded the initial environment, so getenv(TERM) still returned nothing everywhere.
  • init sets the system-wide baseline (PATH=/bin:/usr/bin, HOME, SHELL, LANG) once at the top of the process tree; every descendant inherits it.
  • stlxterm declares TERM=xterm before spawning its shell, since only the terminal emulator knows which escape dialect it implements. The raw console shell correctly gets no TERM.

Made with Cursor

@FlareCoding
FlareCoding merged commit f2ff35c into master Jul 30, 2026
15 checks passed
@FlareCoding
FlareCoding deleted the pr/userland-env-defaults branch July 30, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant