public class BourneShell extends Shell
| Constructor and Description |
|---|
BourneShell() |
BourneShell(boolean isLoginShell) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExecutable() |
protected java.lang.String |
getExecutionPreamble() |
java.lang.String[] |
getShellArgs()
Get the shell arguments
|
java.util.List<java.lang.String> |
getShellArgsList() |
protected java.lang.String |
quoteOneItem(java.lang.String path,
boolean isExecutable)
Unify quotes in a path for the Bourne Shell.
|
addShellArg, clearArguments, clone, getArgumentEscapePattern, getArgumentQuoteDelimiter, getCommandLine, getEscapeChars, getExecutableQuoteDelimiter, getOriginalCommandLine, getOriginalExecutable, getQuotingTriggerChars, getRawCommandLine, getShellCommand, getShellCommandLine, getWorkingDirectory, getWorkingDirectoryAsString, isDoubleQuotedArgumentEscaped, isDoubleQuotedExecutableEscaped, isQuotedArgumentsEnabled, isQuotedExecutableEnabled, isSingleQuotedArgumentEscaped, isSingleQuotedExecutableEscaped, setArgumentEscapePattern, setArgumentQuoteDelimiter, setDoubleQuotedArgumentEscaped, setDoubleQuotedExecutableEscaped, setExecutable, setExecutableQuoteDelimiter, setQuotedArgumentsEnabled, setQuotedExecutableEnabled, setShellArgs, setShellCommand, setSingleQuotedArgumentEscaped, setSingleQuotedExecutableEscaped, setUnconditionalQuoting, setWorkingDirectory, setWorkingDirectorypublic BourneShell()
public BourneShell(boolean isLoginShell)
public java.lang.String getExecutable()
getExecutable in class Shellpublic java.util.List<java.lang.String> getShellArgsList()
getShellArgsList in class Shellpublic java.lang.String[] getShellArgs()
ShellgetShellArgs in class Shellprotected java.lang.String getExecutionPreamble()
getExecutionPreamble in class Shellprotected java.lang.String quoteOneItem(java.lang.String path,
boolean isExecutable)
Unify quotes in a path for the Bourne Shell.
BourneShell.quoteOneItem(null) = null
BourneShell.quoteOneItem("") = ''
BourneShell.quoteOneItem("/test/quotedpath'abc") = '/test/quotedpath'"'"'abc'
BourneShell.quoteOneItem("/test/quoted path'abc") = '/test/quoted pat'"'"'habc'
BourneShell.quoteOneItem("/test/quotedpath\"abc") = '/test/quotedpath"abc'
BourneShell.quoteOneItem("/test/quoted path\"abc") = '/test/quoted path"abc'
BourneShell.quoteOneItem("/test/quotedpath\"'abc") = '/test/quotedpath"'"'"'abc'
BourneShell.quoteOneItem("/test/quoted path\"'abc") = '/test/quoted path"'"'"'abc'
quoteOneItem in class Shellpath - not null path.