Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

bat-0.27.0-1.1 RPM for x86_64

From OpenSuSE Tumbleweed for x86_64

Name: bat Distribution: openSUSE Tumbleweed
Version: 0.27.0 Vendor: openSUSE
Release: 1.1 Build date: Sun Nov 29 09:18:38 2026
Group: Unspecified Build host: reproducible
Size: 8221970 Source RPM: bat-0.27.0-1.1.src.rpm
Packager: https://bugs.opensuse.org
Url: https://github.com/sharkdp/bat
Summary: A cat(1) clone with syntax highlighting and Git integration
A cat(1) clone which supports syntax highlighting for a large number of
programming and markup languages. It has git integration and automatic paging.

Provides

Requires

License

Apache-2.0 OR MIT

Changelog

* Sun Nov 29 2026 Martin Hauke <mardnh@gmx.de>
  - Update to version 0.27.0
    Features
    * Map .yamllint, .prettierrc and .eslintrc to YAML syntax
      highlighting, see #4156.
    * Map .clang-tidy to YAML syntax highlighting, see #4150.
    * Automatically build the syntax/theme cache on first run when
      custom themes or syntaxes are present but no cache exists yet,
      so newly installed dotfiles work without a manual bat cache
    - -build. Use --no-custom-assets to opt out. Closes #4017.
    * Add -b / --number-nonblank flag to only number non-blank
      lines, for cat -b compatibility. Closes #3856
    * Add a --sanitize=<auto|always|never> flag for safe display of
      untrusted input. It substitutes terminal-active control bytes
      (escape, cursor moves, charset switches, beep, etc.) and
      Unicode bidi / zero-width formatting characters with the
      Unicode replacement character (U+FFFD). Mitigates
      Trojan-Source-style spoofing (CVE-2021-42574). See #3729.
    * Map justfile, Justfile, .justfile, and *.justfile to Makefile
      syntax highlighting, see #3623.
    * Map .kube/config to YAML syntax highlighting, see #3911.
    * Preserve --diff change markers and snip separators when --plain
      is set. Closes #3630.
    * Added support for hidden_file_extensions from .sublime-syntax
      files, see #3613.
    * Add word wrapping mode via --wrap=word, see #3597.
    * Support configuring --terminal-width via BAT_WIDTH, see #3679.
    * Implement --unbuffered mode for streaming input, allowing
      partial lines to display immediately (e.g. tail -f | bat -u).
    * Add --quiet-empty (-E) flag to suppress output when input is
      empty. Closes #1936.
    * Improve native man pages and command help syntax highlighting
      by stripping overstriking, see #3517.
    * Add --fallback-syntax/--fallback-language to apply syntax
      highlighting only when auto-detection fails, see #1341.
    * Map BUILD case sensitively to Python (Starlark) for Bazel,
      see #3576.
    * Syntax highlighting for Python files using uv as script runner
      in shebang #3689.
    Bugfixes
    * Track reverse video (SGR 7 / 27) in the ANSI style tracker so
      it is re-emitted like bold, dim, italic, and underline, and is
      no longer dropped after the first wrapped line when displaying
      ANSI input, see #4144.
    * Preserve buffered stdin when $LESSOPEN temporary-file mode
      falls back to the original input, and handle CRLF line endings
      on returned temp paths, see #4158.
    * Skip cache metadata validation when --no-custom-assets is set
      so outdated or malformed caches do not block fallback to
      integrated assets, see #4157.
    * Only show style decorations with --decorations=auto when stdout
      is interactive, so piped --color=always output no longer
      includes the header, grid, or line numbers, see #4151.
    * Break --wrap=word lines at whitespace in earlier highlighted
      tokens or before ANSI escape sequences instead of in the middle
      of a word, closes #4139.
    * Fix bat cache --help returning exit code 1 instead of 0. Remove
      .arg_required_else_help(true) from the cache subcommand and
      show help when no arguments are provided. See #3798, #3831 and
      [#3837].
    * Fix builtin pager (minus) not responding to search (/, ?, n, N)
      and navigation (PgUp, PgDown, arrows, g, G) keys.
      HashedEventRegister was overriding all default minus bindings
      instead of extending them. Add generate_default_bindings()
      before custom bindings. See #3831, #3798 and #3837.
    * Build the cache automatically on first run when custom themes
      or syntaxes are in subdirectories, see #4131.
    * Do not run filter commands from the configuration of the Git
      repository that contains the displayed file, see #4127.
    * Ignore empty --ignored-suffix values to avoid a stack overflow,
      see #4122.
    * Fix --number-nonblank counting empty UTF-16 lines, see #4118.
    * Fix automatic cache build progress polluting stdout, see #4130.
    * Don't emit --highlight-line escape sequences (background color
      or ansi theme underline) when colors are disabled with
    - -color=never. Closes #4099).
    * Keep configuration and BAT_OPTS active for option-like
      filenames after --, and report invalid configuration for
      help-like filenames, see #4112.
    * Keep emoji sequences together within text chunks when wrapping
      content, and measure their combined display width, see #4108.
    * Preserve full-path syntax mappings when removing ignored
      filename suffixes, see #4111.
    * Fix UTF-16 line splitting at unaligned newline bytes corrupting
      text and shifting line ranges, see #4110.
    * Respect NO_COLOR for the [bat error] and [bat warning]
      prefixes, see #4048.
    * Report BAT_CONFIG_DIR in bat --diagnostic, so bug reports show
      a config directory that overrides $XDG_CONFIG_HOME. See #4068.
    * Ignore a UTF-8 byte order mark at the start of the config file
      instead of treating it as part of the first argument, see
      [#4103].
    * Fix bat hanging forever on JavaScript (and Svelte) code where
      an expression is followed by a block comment, e.g. a /* x */.
      Closes #4080, see #4091.
    * Fix the first line of UTF-16BE input swallowing the second
      line, which broke line numbers, --line-range and highlighting,
      see #4102.
    * Exit quietly with status 0 instead of panicking when stdout is
      closed early (broken pipe) on auxiliary output paths such as
    - -completion, --config-file, --diagnostic,
    - -generate-config-file, --set-terminal-title and cache
    - -build/--clear, matching the main output path since #232,
      closes #4034, see #4035.
    * Fix escape sequence handling in --strip-ansi and --sanitize.
    - -sanitize no longer removes escape sequences, which could hide
      text, see #4024.
    * Report unknown languages in plain piped output, see #4001.
    * Track strikethrough (SGR 9 / 29) in the ANSI style tracker so
      it is re-emitted like bold, dim, italic, and underline, and is
      no longer dropped after the first highlighted token when
      displaying ANSI input with syntax highlighting, see #4015.
    * Allow boolean flags to be given more than once, so that a flag
      set in the config file can also be passed on the command line
      without erroring, see #3912.
    * Allow options that take a value (--binary, --italic-text,
    - -nonprintable-notation, --fallback-syntax, --squeeze-limit) to
      be given more than once, so that a value from the config file
      can be overridden on the command line, see #4102.
    * Use parsed CLI arguments to detect number flags, see #3908.
    * Detect binary content beyond the first line, preventing
      encrypted files with early line breaks from being treated as
      text. Closes #3554, see #3877.
    * Use the last occurrence of numbering and plain flags in
      combined short arguments, see #3897.
    * Avoid a spurious Cargo manifest error during installation from
      Git, see #3899.
    * Avoid repeated scans of long lines in Log syntax highlighting,x
      see #3876.
    * Fix --list-languages respecting --paging=never, see #3828.
    * Fix --sanitize passing through the bidi control characters
      U+200E, U+200F and U+061C, see #3862.
    * --strip-ansi: also strip 8-bit C1 introducers (U+0090, U+0098,
      U+009B, U+009D, U+009E, U+009F) and DCS/SOS/PM/APC sequence
      bodies, which previously passed through. See #3729.
    * Fix --ignored-suffix not falling back to first-line/shebang
      detection when the ignored suffix is also a registered
      extension (e.g. --ignored-suffix .txt on a shebang script),
      see #2745 and #3816.
    * Fix capacity overflow panic when printing a snip separator at
    - -terminal-width=1 with multiple line ranges. Closes #3803,
      see #3804.
    * Pass --no-paging to bat invocations inside the bash / zsh /
      fish / PowerShell shell completion scripts so that shell-level
      pager wiring (e.g. LESSOPEN='|-bat -f -pp %s') cannot inject
      ANSI escape sequences into the completion candidates. Closes
      [#3760].
    * Quote filenames before substituting them into $LESSOPEN /
      $LESSCLOSE templates, preventing shell injection when a
      filename contains shell metacharacters, see #3726.
    * Fix --list-themes unconditionally probing the terminal via
      OSC 10/11 even when --theme was set to an explicit value, see
      [#3700] (regression introduced in bc42149).
    * Fix inverted $LESSCLOSE warning so bat warns on nonzero exit,
      not on success. See #3654.
    * Sanitize control characters in filenames before displaying them
      in the file header, error messages, and the terminal title,
      preventing ANSI escape injection via crafted filenames.
      Closes #3054, see #3691.
    * Report initial input read errors instead of treating them as
      empty input. Closes #3002, see #3706.
    * Update patch:
    * RPMSpec_support.patch
* Tue Jul 07 2026 Matej Cepl <mcepl@cepl.eu>
  - Add RPMSpec_support.patch, which adds support for RPM Spec
    files. The upstream PR gh#sharkdp/bat!3431 has not been
    accepted, because the file format is apparently not enough
    popular in SublimeText (no comments how smart test it is).
    Certainly, this format is a bit more popular in the openSUSE
    world.
* Wed Dec 03 2025 Martin Hauke <mardnh@gmx.de>
  - Update to version 0.26.1
    Features
    * Add paging to '-h' and '--help'.
    Bugfixes
    * Fix hang when using --list-themes with an explicit pager.
    * Fix negative values of N not being parsed in <N:M> line ranges
      without = flag value separator.
    * Fix broken Docker syntax preventing use of custom assets.
    * Fix decorations being applied unexpectedly when piping. Now
      only line numbers explicitly required on the command line
      should be applied in auto decorations mode for cat
      compatibility.
    * Fix diagnostics attempting to find the version of an executable
      named builtin when builtin pager is used.
    * --help now correctly reads the config file for theme
      information etc.
    Other
    * Improve README documentation on pager options passed to less.
    * Make PowerShell completions compatible with PowerShell v5.1.
    * Use more robust approach to escaping in Bash completions.
    Syntaxes
    * Update quadlet syntax mapping to include *.{build,pod} files.
    * Fix inconsistencies in Ada syntax.
    * Add syntax mapping for podman's artifact quadlet files.
    * Highlight Korn Shell scripts (i.e. with a shebang of ...ksh)
      using Bash syntax.
* Mon Oct 20 2025 Ondřej Súkup <mimi.vx@gmail.com>
  - update to 0.26.0
    * Features
    * Add paging to --list-themes, see PR #3239 (@einfachIrgendwer0815)
    * Support negative relative line ranges, e.g. bat -r :-10 / bat -r='-10:', see #3068 (@ajesipow)
    * Support context in line ranges, e.g. bat -r 30::5 /  bat -r 30:40:5, see #3345 (@cavanaug)
    * Add built-in 'minus' pager, e.g. bat --pager=builtin see PR #3402 (@academician)
    * Bugfixes
    * Fix UTF-8 BOM not being stripped for syntax detection, see #3314 (@krikera)
    * Fix BAT_THEME_DARK and BAT_THEME_LIGHT being ignored, see issue #3171 and PR #3168 (@bash)
    * Prevent --list-themes from outputting default theme info to stdout when it is piped, see #3189 (@einfachIrgendwer0815)
    * Rename some submodules to fix Dependabot submodule updates, see issue #3198 and PR #3201 (@victor-gp)
    * Make highlight tests fail when new syntaxes don't have fixtures PR #3255 (@dan-hipschman)
    * Fix crash for multibyte characters in file path, see issue #3230 and PR #3245 (@HSM95)
    * Add missing mappings for various bash/zsh files, see PR #3262 (@AdamGaskins)
    * Send all bat errors to stderr by default, see #3336 (@JerryImMouse)
    * Make --map-syntax target case insensitive to match --language, see #3206 (@keith-hall)
    * Correctly determine the end of the line in UTF16LE/BE input #3369 (@keith-hall)
    * --style=changes no longer prints a two-space indent when the file is unmodified, see issue #2710 and PR #3406 (@jyn514)
    * Add missing shell completions, see #3411 (@keith-hall)
    * Execute help/version/diagnostic commands even with invalid config/arguments present, see #3414 (@keith-hall)
    * Fixed line numbers (-n) and style components not printing when piping output, see issue #2935 and PR #3438 (@lmmx)
    * Other
    * Update base16 README links to community driven base16 work #2871 (@JamyGolden)
    * Work around build failures when building bat from vendored sources #3179 (@dtolnay)
    * CICD: Stop building for x86_64-pc-windows-gnu which fails #3261 (Enselic)
    * CICD: CICD: replace windows-2019 runners with windows-2025 #3339 (@cyqsimon)
    * Build script: replace string-based codegen with quote-based codegen #3340 (@cyqsimon)
    * Improve code coverage of --list-languages parameter #2942 (@sblondon)
    * Only start offload worker thread when there's more than 1 core #2956 (@cyqsimon)
    * Update terminal-colorsaurus (the library used for dark/light detection) to 1.0, see #3347 (@bash)
    * Update console dependency to 0.16, see #3351 (@musicinmybrain)
    * Fixed some typos #3244 (@ssbarnea)
    * Update onig_sys dependency to 69.9.1 to fix a gcc build failure #3400 (@CosmicHorrorDev)
    * Add a cargo feature (vendored-libgit2) to build with vendored libgit2 version without depending on the system's one #3426 (@0x61nas)
    * Update syntect dependency to v5.3.0 to fix a few minor bugs, see #3410 (@keith-hall)
    * Syntaxes
    * Add syntax mapping for paru configuration files #3182 (@cyqsimon)
    * Add support for Idris 2 programming language #3150 (@buzden)
    * Add syntax mapping for nix's 'flake.lock lockfiles #3196 (@odilf)
    * Improvements to CSV/TSV highlighting, with autodetection of delimiter and support for TSV files, see #3186 (@keith-
    * Improve (Sys)log error highlighting, see #3205 (@keith-hall)
    * Map ndjson extension to JSON syntax, see #3209 (@keith-hall)
    * Map files with csproj, vbproj, props and targets extensions to XML syntax, see #3213 (@keith-hall)
    * Add debsources syntax to highlight /etc/apt/sources.list files, see #3215 (@keith-hall)
    * Add syntax definition and test file for GDScript highlighting, see #3236 (@chetanjangir0)
    * Add syntax test file for Odin highlighting, see #3241 (@chetanjangir0)
    * Update quadlet syntax mapping rules to cover quadlets in subdirectories #3299 (@cyqsimon)
    * Add syntax Typst #3300 (@cskeeters)
    * Map .mill files to Scala syntax for Mill build tool configuration files #3311 (@krikera)
    * Add syntax highlighting for VHDL, see #3337 (@JerryImMouse)
    * Add syntax mapping for certbot certificate configuration #3338 (@cyqsimon)
    * Update Lean syntax from Lean 3 to Lean 4 #3322 (@YDX-2147483647)
    * Map .flatpakref and .flatpakrepo files to INI syntax #3353 (@Ferenc-)
    * Update hosts syntax #3368 (@keith-hall)
    * Map .kshrc files to Bash syntax #3364 (@ritoban23)
    * Map /var/log/dmesg files to Syslog syntax #3412 (@keith-hall)
    * Add syntax definition and test file for Go modules(go.mod and go.sum) highlighting, see #3424 (@DarkMatter-999)
    * Syntax highlighting for typescript code blocks within Markdown files, see #3435 (@MuntasirSZN)
    * Themes
    * Add Catppuccin, see #3317 (@SchweGELBin)
    * Updated Catppuccin, see #3333 (@SchweGELBin)
    * Updated gruvbox, see #3372 (@Nicholas42)
    * Updated GitHub theme, see #3382 (@CosmicHorrorDev)
    * Updated ANSI theme to highlight JSON object keys differently from values, see #3413 (@keith-hall)
* Mon Oct 13 2025 Ondřej Súkup <mimi.vx@gmail.com>
  - cleanup _service
  - refresh vendor.tar.zst to fix build problems
* Wed Jan 08 2025 Michael Vetter <mvetter@suse.com>
  - Update to 0.25.0:
    Features:
    * Set terminal title to file names when Paging is not Paging::Never #2807
    * bat --squeeze-blank/bat -s will now squeeze consecutive empty lines, see #1441 and #2665
    * bat --squeeze-limit to set the maximum number of empty consecutive when using --squeeze-blank, see #1441 #2665
    * PrettyPrinter::squeeze_empty_lines to support line squeezing for bat as a library, see #1441 #2665
    * Syntax highlighting for JavaScript files that start with #!/usr/bin/env bun #2913
    * bat --strip-ansi={never,always,auto} to remove ANSI escape sequences from bat's input, see #2999
    * Add or remove individual style components without replacing all styles #2929
    * Automatically choose theme based on the terminal's color scheme, see #2896
    * Add option --binary=as-text for printing binary content, see issue #2974 and PR #2976
    * Make shell completions available via --completion <shell>, see issue #2057 and PR #3126
    * Syntax highlighting for puppet code blocks within Markdown files, see #3152
    Bugfixes:
    * Fix long file name wrapping in header, see #2835
    * Fix NO_COLOR support, see #2767
    * Fix handling of inputs with OSC ANSI escape sequences, see #2541 and #2544
    * Fix handling of inputs with combined ANSI color and attribute sequences, see #2185 and #2856
    * Fix panel width when line 10000 wraps, see #2854
    * Fix compile issue of time dependency caused by standard library regression #3045
    * Fix override behavior of --plain and --paging, see issue #2731 and PR #3108
    * Fix bugs in $LESSOPEN support, see #2805
    Other:
    * Upgrade to Rust 2021 edition #2748
    * Refactor and cleanup build script #2756
    * Checks changelog has been written to for PRs in CI #2766
      + Use GitHub API to get correct PR submitter #2791
    * Minor benchmark script improvements #2768
    * Update Arch Linux package URL in README files #2779
    * Update and improve zsh completion, see #2772
    * More extensible syntax mapping mechanism #2755
    * Use proper Architecture for Debian packages built for musl, see #2811
    * Pull in fix for unsafe-libyaml security advisory, see #2812
    * Update git-version dependency to use Syn v2, see #2816
    * Update git2 dependency to v0.18.2, see #2852
    * Improve performance when color output disabled, see #2397 and #2857
    * Relax syntax mapping rule restrictions to allow brace expansion #2865
    * Apply clippy fixes #2864
    * Faster startup by offloading glob matcher building to a worker thread #2868
    * Display which theme is the default one in basic output (no colors), see #2937
    * Display which theme is the default one in colored output, see #2838
    * Add aarch64-apple-darwin ("Apple Silicon") binary tarballs to releases, see #2967
    * Update the Lisp syntax, see #2970
    * Use bat's ANSI iterator during tab expansion, see #2998
    * Support 'statically linked binary' for aarch64 in 'Release' page, see #2992
    * Update options in shell completions and the man page of bat, see #2995
    * Update nix dev-dependency to v0.29.0, see #3112
    * Bump MSRV to 1.74, see #3154
    * Update clircle dependency to remove winapi transitive dependency, see #3113
    Syntaxes:
    * cmd-help: scope subcommands followed by other terms, and other misc improvements, see #2819
    * Upgrade JQ syntax, see #2820
    * Add syntax mapping for quadman quadlets #2866
    * Map containers .conf files to TOML syntax #2867
    * Associate .xsh files with xonsh syntax that is Python, see #2840
    * Associate JSON with Comments .jsonc with json syntax, see #
    * Associate JSON-LD .jsonld files with json syntax, see #3037
    * Associate .textproto files with ProtoBuf syntax, see #3038
    * Associate GeoJSON .geojson files with json syntax, see #3084
    * Associate .aws/{config,credentials}, see #2795
    * Associate Wireguard config /etc/wireguard/*.conf, see #2874
    * Add support for CFML, see #3031
    * Map *.mkd files to Markdown syntax, see issue #3060 and PR #3061
    * Add syntax mapping for CITATION.cff, see #3103
    * Add syntax mapping for kubernetes config files #3049
    * Adds support for pipe delimiter for CSV #3115
    * Add syntax mapping for /etc/pacman.conf #2961
    * Associate uv.lock with TOML syntax, see #3132
    Themes:
    * Patched/improved themes for better Manpage syntax highlighting support, see #2994
* Tue Nov 19 2024 Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
  - Update vendored dependencies to fix build failures on newer rust versions
  - Remove cargo_config since it is now included in vendor.tar.xz by the obs service
* Fri Nov 03 2023 Joshua Smith <jsmithfpv@gmail.com>
  - Update to 0.24.0:
    Features:
    * Add environment variable BAT_PAGING, see #2629
    * Add opt-in (--features lessopen) support for LESSOPEN and
      LESSCLOSE. See #1597, #1739, #2444, #2602, and #2662
    Bugfixes:
    * Fix more not being found on Windows when provided via
      BAT_PAGER, see #2570, #2580, and #2651
    * Switched default behavior of --map-syntax to be case
      insensitive #2520
    * Updated version of serde_yaml to 0.9. See #2627
    * Fix arithmetic overflow in LineRange::from and
      LineRange::parse_range, see #2674, #2698
    * Fix paging not happening when stdout is interactive but stdin
      is not, see #2574
    * Make -pp override --paging and vice versa when passed as a
      later argument, see #2660
    Other:
    * Output directory for generated assets (completion, manual) can
      be customized, see #2515
    * Use the is-terminal crate instead of atty, see #2530
    * Add Winget Releaser workflow, see #2519
    * Bump MSRV to 1.70, see #2651
    Syntaxes:
    * Associate os-release with bash syntax, see #2587
    * Associate Containerfile with Dockerfile syntax, see #2606
    * Replaced quotes with double quotes so fzf integration example
      script works on windows and linux. see #2095
    * Associate ksh files with bash syntax, see #2633
    * Associate sarif files with JSON syntax, see #2695
    * Associate ron files with rust syntax, see #2427
    * Add support for WebGPU Shader Language, see #2692
    * Add .dpkg-new and .dpkg-tmp to ignored suffixe, see #2595
    * fix: Add syntax mapping *.jsonl => json, see #2539
    * Update Julia syntax, see #2553
    * add NSIS support, see #2577
    * Update ssh-config, see #2697
* Sat Mar 25 2023 Michael Vetter <mvetter@suse.com>
  - Update to 0.23.0:
    Features:
    * Implemented -S and --chop-long-lines flags as aliases for
    - -wrap=never. See #2309
    * Breaking change: Environment variables can now override config
      file settings (but command-line arguments still have the highest
      precedence), see #1152, #1281, and #2381
    * Implemented --nonprintable-notation=caret to support showing
      non-printable characters using caret notation. See #2429
    Bugfixes:
    * Fix bat cache --clear not clearing the --target dir if specified. See #2393
    Other:
    * Various bash completion improvements, see #2310
    * Disable completion of cache subcommand, see #2399
    * Signifigantly improve startup performance on macOS, see #2442
    * Bump MSRV to 1.62, see #2496
    Syntaxes:
    * Added support for Ada, see #1300 and #2316
    * Added todo.txt syntax, see #2375
    * Improve Manpage.sublime-syntax. See #2364 and #2461
    * Added a new requirements.txt syntax, see #2361
    * Added a new VimHelp syntax, see #2366
    * Associate pdm.lock with TOML syntax, see #2410
    * Todo.txt: Fix highlighting of contexts and projects at beginning
      of done.txt, see #2411
    * cmd-help: overhaul scope names (colors) to improve theme
      support; misc syntax improvements. See #2419
    * Added support for Crontab, see #2509
* Wed Nov 30 2022 Filippo Bonazzi <filippo.bonazzi@suse.com>
  - Add shell completion packages
  - Install manpage

Files

/usr/bin/bat
/usr/share/doc/packages/bat
/usr/share/doc/packages/bat/CHANGELOG.md
/usr/share/doc/packages/bat/CONTRIBUTING.md
/usr/share/doc/packages/bat/README.md
/usr/share/licenses/bat
/usr/share/licenses/bat/LICENSE-APACHE
/usr/share/licenses/bat/LICENSE-MIT
/usr/share/man/man1/bat.1.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Dec 1 22:35:01 2026