Bug 2381810 - Syntax error in parameter expansion
Summary: Syntax error in parameter expansion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: atuin
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Cristian Le
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-17 21:52 UTC by Wiley Young
Modified: 2025-07-27 01:40 UTC (History)
3 users (show)

Fixed In Version: atuin-18.3.0-5.fc43 atuin-18.3.0-5.fc42 atuin-18.3.0-5.fc41 atuin-18.3.0-5.el9
Clone Of:
Environment:
Last Closed: 2025-07-18 15:14:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Wiley Young 2025-07-17 21:52:59 UTC
Hello,

  On Fedora 42, /etc/profile.d/atuin.sh at line 12: parameter expansion is missing a left brace. As a result, shellcheck produces error SC2157, "Argument to -n is always true due to literal strings." On my machine:

  $ dnf provides /etc/profile.d/atuin.sh |& grep fc42
  atuin-all-users-18.3.0-4.fc42.noarch : atuin init script for all users
  $ rpm -q zsh
  package zsh is not installed
  $ declare -p ZSH_VERSION
  bash: declare: ZSH_VERSION: not found
  $ [ -n "$ZSH_VERSION-}" ]; echo $?
  0

Related bug report:

  https://github.com/atuinsh/atuin/issues/2828


Reproducible: Always

Comment 1 Fedora Update System 2025-07-18 10:51:31 UTC
FEDORA-2025-ef9d9187fe (atuin-18.3.0-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-ef9d9187fe

Comment 2 Fedora Update System 2025-07-18 11:34:31 UTC
FEDORA-2025-4d9718b657 (atuin-18.3.0-5.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-4d9718b657

Comment 3 Fedora Update System 2025-07-18 11:34:32 UTC
FEDORA-EPEL-2025-7e466a4a60 (atuin-18.3.0-5.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-7e466a4a60

Comment 4 Fedora Update System 2025-07-18 15:14:48 UTC
FEDORA-2025-ef9d9187fe (atuin-18.3.0-5.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2025-07-19 21:15:01 UTC
FEDORA-2025-4d9718b657 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-4d9718b657`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-4d9718b657

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-07-19 22:01:30 UTC
FEDORA-2025-b7777b2321 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b7777b2321`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b7777b2321

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-07-19 22:02:01 UTC
FEDORA-EPEL-2025-7e466a4a60 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-7e466a4a60

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Wiley Young 2025-07-20 18:21:50 UTC
This bug has been resolved. 

https://src.fedoraproject.org/rpms/atuin/blob/rawhide/f/atuin.spec

Commit afa7072 Fix typo in /etc/profile.d/atuin.sh file

Comment 9 Cristian Le 2025-07-21 12:34:47 UTC
Thanks. I am not sure how it will behave with the `%config`. Could you try to install it from https://bodhi.fedoraproject.org/updates/FEDORA-2025-4d9718b657, and check if the file is replaced? Otherwise I might have messed up by adding that part there.

If all is well though, you can give it karma, and we can land it faster.

Comment 10 Fedora Update System 2025-07-27 01:22:08 UTC
FEDORA-2025-4d9718b657 (atuin-18.3.0-5.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-07-27 01:33:29 UTC
FEDORA-2025-b7777b2321 (atuin-18.3.0-5.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2025-07-27 01:40:06 UTC
FEDORA-EPEL-2025-7e466a4a60 (atuin-18.3.0-5.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.