Bug 2411848
| Summary: | Missing '{' in /etc/profile.d/atuin.sh affecting non-bash users (FIX) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bruce Jerrick <bmj001> |
| Component: | atuin | Assignee: | Cristian Le <fedora> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | fedora, michel, rust-sig |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | atuin-18.6.1-5.fc44 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-11-07 17:03:43 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This is embarrassing, I did fix it previously, but I accidentally reverted it when I updated it, I'll get a fix asap FEDORA-2025-d8887a60b5 (atuin-18.6.1-5.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2025-d8887a60b5 FEDORA-2025-d8887a60b5 (atuin-18.6.1-5.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: A missing '{' in /etc/profile.d/atuin.sh will cause the zsh-specific section to run for any non-bash shell. Version-Release number of selected component: atuin-all-users-18.6.1-2.fc43.noarch.rpm Bug also exists in other releases. How reproducible: 100% for non-bash users. Not hit for bash users. The bug can be seen by inspection of line 12 of /etc/profile.d/atuin.sh : ... 3 # Check for bash environment 4 if [ -n "${BASH_VERSION-}" ]; then ... 11 # Check for zsh environment 12 elif [ -n "$ZSH_VERSION-}" ]; then ### should be "${ZSH_VERSION-}" ... Actual results: That expansion on line 12 will always result in "-}", and the test will always evaluate to true. Expected results: For non-zsh, the expansion should be blank, the test should be false. For zsh, the expansion should be "5.9", the test should be true. Additional info: Note that the 'elif' is reached only in a non-bash shell.