Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline ~/.sh/profile into .profile? #10

Open
Rudxain opened this issue May 14, 2024 · 0 comments
Open

inline ~/.sh/profile into .profile? #10

Rudxain opened this issue May 14, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@Rudxain
Copy link
Owner

Rudxain commented May 14, 2024

If I were to unconditionally source .sh/profile in .profile, I would have to un-source it from .bash_profile, and rename all BSF to implicitly "force" Bash to source .profile instead (this is very fragile, as it depends on default behavior). The problem is, users (including myself) would have to nuke all BSF too, as sourcing .profile from any startup-file would cause an infinite source loop.

A potential solution, is to inline .sh/profile into .profile and make .bash_profile source that instead, while un-sourcing .bashrc. This doesn't seem to have any cons, only pros, such as making .profile fully POSIX-compliant and (mostly) shell-agnostic

@Rudxain Rudxain added enhancement New feature or request question Further information is requested labels May 14, 2024
Rudxain added a commit that referenced this issue May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant