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() |
protected char[] |
getQuotingTriggerChars() |
java.lang.String[] |
getShellArgs()
Get the shell arguments
|
java.util.List |
getShellArgsList() |
protected static java.lang.String |
unifyQuotes(java.lang.String path)
Unify quotes in a path for the Bourne Shell.
|
addShellArg, clearArguments, clone, getArgumentQuoteDelimiter, getCommandLine, getEscapeChars, getExecutableQuoteDelimiter, getOriginalCommandLine, getOriginalExecutable, getRawCommandLine, getShellCommand, getShellCommandLine, getWorkingDirectory, getWorkingDirectoryAsString, isDoubleQuotedArgumentEscaped, isDoubleQuotedExecutableEscaped, isQuotedArgumentsEnabled, isQuotedExecutableEnabled, isSingleQuotedArgumentEscaped, isSingleQuotedExecutableEscaped, setArgumentQuoteDelimiter, setDoubleQuotedArgumentEscaped, setDoubleQuotedExecutableEscaped, setExecutable, setExecutableQuoteDelimiter, setQuotedArgumentsEnabled, setQuotedExecutableEnabled, setShellArgs, setShellCommand, setSingleQuotedArgumentEscaped, setSingleQuotedExecutableEscaped, setWorkingDirectory, setWorkingDirectory
public BourneShell()
public BourneShell(boolean isLoginShell)
public java.lang.String getExecutable()
getExecutable
in class Shell
public java.util.List getShellArgsList()
getShellArgsList
in class Shell
public java.lang.String[] getShellArgs()
Shell
getShellArgs
in class Shell
protected java.lang.String getExecutionPreamble()
getExecutionPreamble
in class Shell
protected char[] getQuotingTriggerChars()
getQuotingTriggerChars
in class Shell
protected static java.lang.String unifyQuotes(java.lang.String path)
Unify quotes in a path for the Bourne Shell.
BourneShell.unifyQuotes(null) = null BourneShell.unifyQuotes("") = (empty) BourneShell.unifyQuotes("/test/quotedpath'abc") = /test/quotedpath\'abc BourneShell.unifyQuotes("/test/quoted path'abc") = "/test/quoted path'abc" BourneShell.unifyQuotes("/test/quotedpath\"abc") = "/test/quotedpath\"abc" BourneShell.unifyQuotes("/test/quoted path\"abc") = "/test/quoted path\"abc" BourneShell.unifyQuotes("/test/quotedpath\"'abc") = "/test/quotedpath\"'abc" BourneShell.unifyQuotes("/test/quoted path\"'abc") = "/test/quoted path\"'abc"
path
- not null path.