DevOps / BeanShell Interview questions
What file extension is used for BeanShell scripts?
BeanShell scripts are conventionally saved with a .bsh file extension, which tools like source() and command-line invocations expect when locating a script file.
This extension is also what BeanShell's own command-loading mechanism looks for when searching the classpath for command scripts, since built-in commands are themselves .bsh files stored in a recognized package location.
Following this convention matters mainly for discoverability and tooling - BeanShell itself doesn't strictly refuse to interpret content in a differently-named file if it's explicitly pointed at it, but sticking to .bsh keeps scripts consistent with what the ecosystem's tools expect by default.
More Related questions...