| Constructor and Description | 
|---|
BourneShell()
Create instance of BourneShell. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getExecutable() | 
protected String | 
getExecutionPreamble() | 
String[] | 
getShellArgs()
Get the shell arguments 
 | 
List<String> | 
getShellArgsList() | 
protected String | 
quoteOneItem(String path,
            boolean isExecutable)
Unify quotes in a path for the Bourne Shell. 
 | 
clone, getShellCommandLine, getWorkingDirectory, isDoubleQuotedArgumentEscaped, isSingleQuotedArgumentEscaped, isUnconditionalQuoting, setExecutable, setQuotedArgumentsEnabled, setUnconditionalQuoting, setWorkingDirectory, setWorkingDirectorypublic String getExecutable()
getExecutable in class Shellpublic String[] getShellArgs()
protected String getExecutionPreamble()
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 Shellpath - not null path.Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.