1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-31 18:21:43 +00:00

test: add highlighted outputs for Tcl shebang regression tests

Generate highlighted test outputs for tclsh, wish, and expect
shebang detection files to prevent regressions.
This commit is contained in:
Matt Van Horn
2026-03-27 12:18:30 -07:00
parent e070d105b5
commit cafad6b036
5 changed files with 21 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/expect -f
# Expect script detected via expect shebang
set timeout 30
spawn ssh user@host
expect "password:"
send "secret\r"
expect eof
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env tclsh
# Tcl script detected via tclsh shebang
puts "Hello from tclsh"
set x 42
if {$x > 0} {
 puts "positive"
}
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/wish
# Tk script detected via wish shebang
package require Tk
button .b -text "Click" -command {puts "clicked"}
pack .b