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

bat stalls when it encounters extremely long strings (bug / request?) #2164

Closed
Adamkadaban opened this issue Apr 23, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@Adamkadaban
Copy link

I have a bash script with a ~120000 character b64 string. When bat encounters it, it stalls for a about 3 minutes. It takes just a second if outputting something closer to ~4000 characters.

Default install of bat. Installed using dpkg -i bat*.deb

Software version

bat 0.20.0 (0655ecf)

Operating system

Linux 5.16.0-kali3-amd64

Command-line

/bin/batcat linpeas.sh --paging=never --diagnostic 

Environment variables

SHELL=/bin/bash
PAGER=<not set>
LESS=<not set>
LANG=en_US.UTF-8
LC_ALL=<not set>
BAT_PAGER=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=<not set>
XDG_CACHE_HOME=<not set>
COLORTERM=truecolor
NO_COLOR=<not set>
MANPAGER=<not set>

Config file

Could not read contents of '/root/.config/bat/config': No such file or directory (os error 2).

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Less version

> less --version 
less 590 (GNU regular expressions)
Copyright (C) 1984-2021  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
@Adamkadaban Adamkadaban added the bug Something isn't working label Apr 23, 2022
@keith-hall
Copy link
Collaborator

Thanks for reporting. I believe we are tracking this under #1658

@Enselic
Copy link
Collaborator

Enselic commented May 5, 2022

Duplicate of #1658

@Enselic Enselic marked this as a duplicate of #1658 May 5, 2022
@Enselic Enselic closed this as completed May 5, 2022
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

3 participants