From e7b421180747364e99739bd43e9b2798e3e2e32b Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Wed, 8 Nov 2006 16:14:45 +0000 Subject: [PATCH] Fix bug 163197 (content assist fails on 1st invocation) for ssh --- .../src/org/eclipse/rse/services/ssh/shell/SshHostShell.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/services/ssh/shell/SshHostShell.java b/rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/services/ssh/shell/SshHostShell.java index 366060da16f..f26b58a5693 100644 --- a/rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/services/ssh/shell/SshHostShell.java +++ b/rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/services/ssh/shell/SshHostShell.java @@ -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) {