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

[Bug]: commands entered with starting spaces / initial spaces / blancs are not added to history #2566

Open
1 task done
rpuntaie opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@rpuntaie
Copy link

What did you expect to happen?

After transferring a line with indentation from the editor to the command,
I expected to find that line in the history.

What happened?

I could not find the line with initial spaces / indentation in the history.

Atuin doctor output

atuin doctor                                                                               0(∞)(master|✚4)192.168.1.110/my.git
Atuin Doctor
Checking for diagnostics


Please include the output below with any bug reports or issues

{
  "atuin": {
    "version": "18.4.0",
    "sync": null,
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "zsh",
    "default": "zsh",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "Arch Linux",
    "arch": "x86_64",
    "version": "rolling",
    "disks": [
      {
        "name": "/dev/sda3",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/sda1",
        "filesystem": "vfat"
      },
      {
        "name": "/dev/sdc1",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/sdd1",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/sdb1",
        "filesystem": "ext4"
      }
    ]
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@rpuntaie rpuntaie added the bug Something isn't working label Jan 29, 2025
@agido-jrieks
Copy link

this is not a bug, but expected behavior related to HISTCONTROL, see for example here:
https://unix.stackexchange.com/a/115922
or here:
https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-HISTCONTROL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants