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

doc: Use ~ instead of /home/$USER #1619

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

ppisar
Copy link
Contributor

@ppisar ppisar commented Aug 8, 2024

First not every system has user's home directories under /home directory. Second DNF does not use USER variable at all. It uses HOME environment variable with a fallback to a home directory listed in passwd(5) entry.

Alternativelly, we could write "$HOME". But I find "~" shorter, more aesthetic, more understandible, and more correct in case the HOME variable does not exist.

First not every system has user's home directories under /home
directory. Second DNF does not use USER variable at all. It uses HOME
environment variable with a fallback to a home directory listed in
passwd(5) entry.

Alternativelly, we could write "$HOME". But I find "~" shorter, more
aesthetic, more understandible, and more correct in case the HOME
variable does not exist.
@kontura kontura added this pull request to the merge queue Aug 8, 2024
Merged via the queue into rpm-software-management:main with commit 98e6b01 Aug 8, 2024
16 checks passed
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.

2 participants