int fd = getStdioFD(opts);
if (fd != 0) {
throw new AssertionError("stdin only supported on fd 0");
}
log.debug("Using standard input for script input");
sandbox.setStdin(new NoCloseInputStream(parent.runner.getStdin()));
} else if (STDIO_IGNORE.equals(type)) {
// Just create a dummy stream in case someone needs to read from it
sandbox.setStdin(new BitBucketInputStream());