patch 9.1.0244: filetype: bash history files are not recognized

Commit: 
https://github.com/vim/vim/commit/84ce55001af80d89245c4dd051c6f809389df62f
Author: Wu, Zhenyu <wuzhe...@ustc.edu>
Date:   Sun Mar 31 19:22:51 2024 +0200

    patch 9.1.0244: filetype: bash history files are not recognized
    
    Problem:  filetype: bash history files are not recognized
    Solution: detect .bash-history and .bash_history files as bash
              (Wu, Zhenyu)
    
    closes: #14365
    
    Signed-off-by: Wu, Zhenyu <wuzhe...@ustc.edu>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c06a05629..e1d773258 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2020,7 +2020,7 @@ au BufNewFile,BufRead catalog                     setf 
catalog
 " Gentoo ebuilds, Arch Linux PKGBUILDs and Alpine Linux APKBUILDs are actually
 " bash scripts.
 " NOTE: Patterns ending in a star are further down, these have lower priority.
-au BufNewFile,BufRead 
.bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.ebuild,*.bash,*.eclass,PKGBUILD,APKBUILD,*.bats
 call dist#ft#SetFileTypeSH("bash")
+au BufNewFile,BufRead 
.bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,.bash[_-]history,bash-fc[-.],*.ebuild,*.bash,*.eclass,PKGBUILD,APKBUILD,*.bats
 call dist#ft#SetFileTypeSH("bash")
 au BufNewFile,BufRead .kshrc,*.ksh call dist#ft#SetFileTypeSH("ksh")
 au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call 
dist#ft#SetFileTypeSH(getline(1))
 
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index c4a57a090..a1f7e2221 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -622,7 +622,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     services: ['/etc/services', 'any/etc/services'],
     setserial: ['/etc/serial.conf', 'any/etc/serial.conf'],
     sexplib: ['file.sexp'],
-    sh: ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', 
'.bash-logout', '.bash_aliases', '.bash-aliases', '/tmp/bash-fc-3Ozjlw', 
'/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 'APKBUILD', 'file.bash', 
'/usr/share/doc/bash-completion/filter.sh', '/etc/udev/cdsymlinks.conf', 
'any/etc/udev/cdsymlinks.conf', 'file.bats'],
+    sh: ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', 
'.bash-logout', '.bash_aliases', '.bash-aliases', '.bash_history', 
'.bash-history', '/tmp/bash-fc-3Ozjlw', '/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 
'APKBUILD', 'file.bash', '/usr/share/doc/bash-completion/filter.sh', 
'/etc/udev/cdsymlinks.conf', 'any/etc/udev/cdsymlinks.conf', 'file.bats'],
     sieve: ['file.siv', 'file.sieve'],
     sil: ['file.sil'],
     simula: ['file.sim'],
diff --git a/src/version.c b/src/version.c
index b89c6c874..a6755acaa 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    244,
 /**/
     243,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rqz0R-000N5q-Gr%40256bit.org.

Raspunde prin e-mail lui