Package ghidra.pty
Class ShellUtils
java.lang.Object
ghidra.pty.ShellUtils
-
Nested Class Summary
Nested ClassesChangeModifier and TypeClassDescriptionstatic enumA target shell for command-line arguments -
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionstatic StringgenerateEnvBlock(Map<String, String> env) static StringgenerateLine(List<String> args, ShellUtils.Shell shell) Parse a command line into an argument liststatic StringremovePath(String exec) removePath(List<String> args) REMOVEDStringgenerateArgument(String a) Removed
-
Constructor Details
-
ShellUtils
public ShellUtils()
-
-
Method Details
-
parseArgs
Parse a command line into an argument listLATER: This is meant to mimic UNIX- / C-style arguments, but that's probably not appropriate on all systems. We should either:
- Let the offer specify how
@argsought to be treated. - Let the header annotations for
@argsinclude some extra specifier.
- Parameters:
args- the arguments as a single string- Returns:
- the list of split arguments
- Let the offer specify how
-
removePath
-
removePath
-
generateLine
-
generateEnvBlock
-