1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

[246422] Fixed Shell constructor in runCommand method.

This commit is contained in:
Anna Dushistova 2008-09-26 20:38:07 +00:00
parent ebaa191fab
commit bca7723a18

View file

@ -16,7 +16,8 @@
* Sheldon D'souza (Celunite) - Adapted from SshShellService. * Sheldon D'souza (Celunite) - Adapted from SshShellService.
* Martin Oberhuber (Wind River) - [226262] Make IService IAdaptable * Martin Oberhuber (Wind River) - [226262] Make IService IAdaptable
* Martin Oberhuber (Wind River) - [226301][api] IShellService should throw SystemMessageException on error * Martin Oberhuber (Wind River) - [226301][api] IShellService should throw SystemMessageException on error
s *******************************************************************************/ * Anna Dushistova (MontaVista) - [246422] Possible bug in TelnetShellService.runCommand()
*******************************************************************************/
package org.eclipse.rse.internal.services.telnet.shell; package org.eclipse.rse.internal.services.telnet.shell;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
@ -45,7 +46,7 @@ public class TelnetShellService extends AbstractShellService implements ITelnetS
public IHostShell runCommand(String initialWorkingDirectory, public IHostShell runCommand(String initialWorkingDirectory,
String command, String encoding, String[] environment, String command, String encoding, String[] environment,
IProgressMonitor monitor) throws SystemMessageException { IProgressMonitor monitor) throws SystemMessageException {
TelnetHostShell hostShell = new TelnetHostShell(fTelnetSessionProvider, initialWorkingDirectory, TelnetHostShell.SHELL_INVOCATION, encoding, environment); TelnetHostShell hostShell = new TelnetHostShell(fTelnetSessionProvider, initialWorkingDirectory, command, encoding, environment);
return hostShell; return hostShell;
} }