1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

Fix bug 163197 (content assist fails on 1st invocation) for ssh

This commit is contained in:
Martin Oberhuber 2006-11-08 16:14:45 +00:00
parent e0b55f83c4
commit e7b4211807

View file

@ -94,8 +94,9 @@ public class SshHostShell extends AbstractHostShell implements IHostShell {
&& !initialWorkingDirectory.equals("Command Shell") //$NON-NLS-1$ //FIXME workaround for bug 153047
) {
writeToShell("cd "+initialWorkingDirectory); //$NON-NLS-1$
}
if(commandToRun!=null && commandToRun.length()>0 && !commandToRun.equals(SHELL_INVOCATION)) {
} else if (SHELL_INVOCATION.equals(commandToRun)) {
writeToShell(getPromptCommand());
} else if(commandToRun!=null && commandToRun.length()>0) {
writeToShell(commandToRun);
}
} catch(Exception e) {