Skip to content

[Bug]: atuin search's --exclude-exit includes exit code 0. #3193

@kristof-mattei

Description

@kristof-mattei

What did you expect to happen?

--exclude-exit 0 to exclude exit-code 0

What happened?

One of them was included:

Searching with --exclude-exit excludes non-0 exit codes, yet the atuin search itself is included in the list, even though it exists with 0:

❮ atuin search --exclude-exit=0 --after 2026-02-16 --human
...
2026-02-17 08:54:07     atuin search --exclude-exit=0 --after 2026-02-16 --human        0s

❮ echo $status
0

❮ atuin search --exclude-exit=0 --after 2026-02-16 --human
...
2026-02-17 08:54:11     atuin search --exclude-exit=0 --after 2026-02-16 --human        0s

Atuin doctor output

❯ atuin doctor
Atuin Doctor
Checking for diagnostics


Please include the output below with any bug reports or issues

{
  "atuin": {
    "version": "18.12.1",
    "commit": "",
    "sync": {
      "cloud": false,
      "records": true,
      "auto_sync": true,
      "last_sync": "2026-02-17 16:00:40.251917428 +00:00:00"
    },
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "fish",
    "default": "fish",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "Ubuntu",
    "arch": "x86_64",
    "version": "25.10",
    "disks": [
      {
        "name": "/dev/mapper/ubuntu--vg-ubuntu--lv",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p2",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/sdb1",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p1",
        "filesystem": "vfat"
      }
    ]
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions