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 failed in powershell when press Ctrl+C #3229

Open
HzFrancesca opened this issue Mar 6, 2025 · 0 comments
Open

Bat failed in powershell when press Ctrl+C #3229

HzFrancesca opened this issue Mar 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@HzFrancesca
Copy link

HzFrancesca commented Mar 6, 2025

What steps will reproduce the bug?

  1. open powershell 7.5.0 in windows terminal
  2. use bat check a file which will call less
  3. press Ctrl+C

What happens?

The interface is stuck. so i can only open a new terminal

What did you expect to happen instead?

I attempted to just use less , and although it doesn’t exit with Ctrl+C, I can still quit normally using ‘q’ after trying Ctrl+C.

Therefore, should bat behave like less?

By that, I mean bat functions correctly, but the issue arises when I press Ctrl+C.

How did you install bat?

scoop install less
scoop install scoop


bat version and environment

(daily)# HZF @ Francesca in ~\..\..\TheMisingSemester on git:main x $ bat '.\TheMissingSemester_L11_Q&A.md' --diagnostic
#### Software version

bat 0.25.0 (25f4f96)

#### Operating system

Windows 6.2.9200

#### Command-line

```bash
C:\Users\HZF\scoop\apps\bat\current\bat.exe .\TheMissingSemester_L11_Q&A.md --diagnostic

Environment variables

BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=<not set>
LANG=<not set>
LC_ALL=<not set>
LESS=<not set>
MANPAGER=<not set>
NO_COLOR=<not set>
PAGER=<not set>
SHELL=<not set>
TERM=<not set>
XDG_CACHE_HOME=<not set>
XDG_CONFIG_HOME=<not set>

System Config file

Could not read contents of 'C:\ProgramData\bat\config': 系统找不到指定的路径。 (os error 3).

Config file


Custom assets metadata

Could not read contents of 'C:\Users\HZF\AppData\Local\bat\metadata.yaml': 系统找不到指定的路径。 (os error 3).

Custom assets

'C:\Users\HZF\AppData\Local\bat' not found

Compile time information

  • Profile: release
  • Target triple: x86_64-pc-windows-msvc
  • Family: windows
  • OS: windows
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: cmpxchg16b,fxsr,sse,sse2,sse3
  • Host: x86_64-pc-windows-msvc

Less version

> C:\Users\HZF\scoop\shims\less.exe --version
less 668 (Spencer V8 regular expressions)
Copyright (C) 1984-2024  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

Or maybe there's something wrong with my Windows?

Thank you so much.

@HzFrancesca HzFrancesca added the bug Something isn't working label Mar 6, 2025
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

1 participant