As discussed here jbangdev/jbang#676 there are cases where you do not have a .java extension for your Jbang script.
Reproducer<1/summary>
Example:
- In the folder
~/tmp/tmp2
- Create the file
hello with this content:
///usr/bin/env jbang "$0" "$@" ; exit $?
import static java.lang.System.*;
public class hello {
public static void main(String... args) {
out.println("Hello World");
}
}
Currently those files can not be selected:
