mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-29 11:13:34 +02:00
[318372] [dstore][shells] "export" shell command invalid for certain shells
This commit is contained in:
parent
1449cb4254
commit
a0570ec952
1 changed files with 7 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
* David McKnight (IBM) [302996] [dstore] null checks and performance issue with shell output
|
* David McKnight (IBM) [302996] [dstore] null checks and performance issue with shell output
|
||||||
* David McKnight (IBM) [308246] [dstore] fix for Bug 287305 breaks on z/OS due to "su" usage
|
* David McKnight (IBM) [308246] [dstore] fix for Bug 287305 breaks on z/OS due to "su" usage
|
||||||
* David McKnight (IBM) [312415] [dstore] shell service interprets < and > sequences - handle old client/new server case
|
* David McKnight (IBM) [312415] [dstore] shell service interprets < and > sequences - handle old client/new server case
|
||||||
|
* David McKnight (IBM) [318372] [dstore][shells] "export" shell command invalid for certain shells
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.dstore.universal.miners.command;
|
package org.eclipse.rse.internal.dstore.universal.miners.command;
|
||||||
|
@ -539,8 +540,13 @@ public class CommandMinerThread extends MinerThread
|
||||||
// initialization
|
// initialization
|
||||||
if (didLogin || _isTTY)
|
if (didLogin || _isTTY)
|
||||||
{
|
{
|
||||||
|
// unsupported prompting
|
||||||
|
boolean unsupportedPrompt = theShell.endsWith("csh") || theShell.endsWith("bsh") || //$NON-NLS-1$//$NON-NLS-2$
|
||||||
|
theShell.endsWith("tsh") || theShell.endsWith("rksh"); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
|
|
||||||
|
|
||||||
String initCmd = ""; //$NON-NLS-1$
|
String initCmd = ""; //$NON-NLS-1$
|
||||||
if (_isTTY){
|
if (_isTTY && !unsupportedPrompt){
|
||||||
initCmd = "export PS1='$PWD>';" ; //$NON-NLS-1$
|
initCmd = "export PS1='$PWD>';" ; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
if (didLogin && !userHome.equals(_cwdStr)){
|
if (didLogin && !userHome.equals(_cwdStr)){
|
||||||
|
|
Loading…
Add table
Reference in a new issue