Constructor and Description |
---|
BourneShell() |
BourneShell(boolean isLoginShell) |
Modifier and Type | Method and Description |
---|---|
String |
getExecutable() |
protected String |
getExecutionPreamble() |
String[] |
getShellArgs() |
List<String> |
getShellArgsList() |
protected String |
quoteOneItem(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, setWorkingDirectory
public BourneShell()
public BourneShell(boolean isLoginShell)
public String getExecutable()
getExecutable
in class Shell
public List<String> getShellArgsList()
getShellArgsList
in class Shell
public String[] getShellArgs()
getShellArgs
in class Shell
protected String getExecutionPreamble()
getExecutionPreamble
in class Shell
protected String quoteOneItem(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 Shell
path
- not null path.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.