getsolus / getsolus/packages

Bash is not entirely stateless

Open
#3,955 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Priority: Normal
Dominant language
Python
Stars
141
Forks
146
Avg merge
11h 7m
Merged PRs (30d)
407

Description

Follow up from #3795. As Ikey pointed out:

The solus bash patch is broken
I tried a new approach in the serpent pkg:
https://github.com/serpent-os/recipes/blob/main/b/bash/pkg/stateless.patch
Also see the bashrc and profile files
They'll conditionally load stuff if necessary
Just need to add the checks for ~/.bashrc in the vendor profile files basically

Replace /etc/skel/{.bashrc,.profile} files with properly stateless patches

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing /etc/skel/{.bashrc,.profile} files and the referenced stateless.patch approach, along with the vendor profile files mentioned in the issue. Compare them with the Solus and Serpent examples; done means the replacement patches conditionally load user configuration without making Bash stateful.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.