MCPcopy Create free account
hub / github.com/Singular/Singular / BuildCommand

Function BuildCommand

ppcc/adlib/os.cc:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107Str *BuildCommand(Str *prog, StrArr *args) {
108 Str *command = new Str(1024);
109 command->add(ShellEscape(prog));
110 for (Int i = 0; i < args->len(); i++) {
111 command->add(' ')->add(ShellEscape(args->at(i)));
112 }
113 return command;
114}
115
116Str *ReadProcess(Str *prog, StrArr *args) {
117 Str *command = BuildCommand(prog, args);

Callers 3

ReadProcessFunction · 0.85
WriteProcessFunction · 0.85
SystemFunction · 0.85

Calls 4

ShellEscapeFunction · 0.85
addMethod · 0.45
lenMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected