Skip to content

Bell sound on git hooks scripts not working #11202

@KeterSCP

Description

@KeterSCP

Windows Terminal version (or Windows build number)

1.10.2383.0

Other Software

git 2.31.1.windows.1

Steps to reproduce

  1. Enable Audible bell notification style for the powershell or cmd profile in the windows terminal.
  2. Create an empty repo.
  3. In .git/hooks folder add post-checkout file with following content:
#!/bin/bash                                                                      

tput setaf 1 # set red foreground

echo 'Here the bell sound should appear'

tput bel # make a sound

tput sgr0 # reset
  1. Add a dummy file and commit it to initialize the branch.
  2. Open repo folder in powershell or cmd profile in windows terminal.
  3. Execute git checkout command

Expected Behavior

The bell should be triggered

Actual Behavior

Bell is not triggered.

When repeating mentioned steps from windows powershell or cmd (not from the windows terminal), the bell is being triggered.
bell-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportHelp WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingPriority-2A description (P2)Resolution-ExternalFor issues that are outside this codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions