public class BourneShell extends Shell
| Modifier and Type | Field and Description |
|---|---|
private static char[] |
BASH_QUOTING_TRIGGER_CHARS |
| Constructor and Description |
|---|
BourneShell()
Create instance of BournShell.
|
| 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<java.lang.String> |
getShellArgsList() |
private static java.lang.String |
unifyQuotes(java.lang.String path)
Unify quotes in a path for the Bourne Shell.
|
clone, getArgumentQuoteDelimiter, getCommandLine, getEscapeChars, getExecutableQuoteDelimiter, getRawCommandLine, getShellCommand, getShellCommandLine, getWorkingDirectory, getWorkingDirectoryAsString, isDoubleQuotedArgumentEscaped, isDoubleQuotedExecutableEscaped, isQuotedArgumentsEnabled, isQuotedExecutableEnabled, isSingleQuotedArgumentEscaped, isSingleQuotedExecutableEscaped, setArgumentQuoteDelimiter, setExecutable, setExecutableQuoteDelimiter, setQuotedArgumentsEnabled, setQuotedExecutableEnabled, setShellArgs, setShellCommand, setSingleQuotedArgumentEscaped, setSingleQuotedExecutableEscaped, setWorkingDirectory, setWorkingDirectorypublic java.lang.String getExecutable()
getExecutable in class Shellpublic java.util.List<java.lang.String> getShellArgsList()
getShellArgsList in class Shellpublic java.lang.String[] getShellArgs()
getShellArgs in class Shellprotected java.lang.String getExecutionPreamble()
getExecutionPreamble in class Shellprotected char[] getQuotingTriggerChars()
getQuotingTriggerChars in class Shellprivate 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.