org.codehaus.plexus.util.cli.shell
public class BourneShell extends Shell
Version: $Id: BourneShell.java 8010 2009-01-07 12:59:50Z vsiveton $
Constructor Summary | |
---|---|
BourneShell() | |
BourneShell(boolean isLoginShell) |
Method Summary | |
---|---|
String | getExecutable() |
protected String | getExecutionPreamble() |
protected char[] | getQuotingTriggerChars() |
String[] | getShellArgs() |
List | getShellArgsList() |
protected static String | unifyQuotes(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" |
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"
Parameters: path not null path.
Returns: the path unified correctly for the Bourne shell.