Skip to content

Commit

Permalink
Merge pull request #744 from xdelaruelle/tcl_info_shell_test
Browse files Browse the repository at this point in the history
Add ability to test a shell name on `module-info shell`
  • Loading branch information
rtmclay authored Jan 10, 2025
2 parents 1f416cc + d245df0 commit 08b71ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/tcl2lua.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,15 @@ proc module-info {what {more {}}} {
}
}
"shell" {
return $g_shellName
if {$more ne {}} {
if {$g_shellName eq $more} {
return 1
} else {
return 0
}
} else {
return $g_shellName
}
}
"shelltype" {
return $g_shellType
Expand Down

0 comments on commit 08b71ad

Please sign in to comment.