This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
// The problem is that is is not in registry...
// I.e. we will use it if on msys found on the system...
if (candidate == null) {
candidate = new Shell(ShellType.CYGWIN, sh.getAbsolutePath(), parent);
candidate = new Shell(ShellType.CYGWIN, new File(sh.getParentFile(), "bash.exe").getAbsolutePath(), parent);
}
// Still there is a chance that this installation is
// OK (even if it is not in the registry).
return null;
File sh = new File(root + "/bin/sh.exe"); // NOI18N
File sh = (type == ShellType.CYGWIN) ? new File(root + "/bin/bash.exe") : new File(root + "/bin/sh.exe"); // NOI18N
if (!sh.exists() || !sh.canRead()) {
String shell = hostInfo.getLoginShell();
// npb.setWorkingDirectory("${HOME}");
npb.setExecutable(shell);
if (shell.endsWith("bash") || shell.endsWith("bash.exe")) {
npb.setArguments("--login");
NativeExecutionDescriptor descr;
descr = new NativeExecutionDescriptor().controllable(true).frontWindow(true).inputVisible(false).inputOutput(io);
NativeExecutionService es = NativeExecutionService.newService(npb, descr, "Terminal Emulator"); // NOI18N