FormatForShell takes a command name and an argument string and returns a command and arguments that pass this command to the shell. Note that neither the command nor the arguments are quoted. Consider FormatForShellQuoted instead.
(name string, args string)
| 140 | // the command nor the arguments are quoted. Consider FormatForShellQuoted |
| 141 | // instead. |
| 142 | func FormatForShell(name string, args string) (string, []string) { |
| 143 | return "sh", []string{"-c", name + " " + args} |
| 144 | } |
| 145 | |
| 146 | // FormatForShellQuotedArgs takes a command name and an argument string and |
| 147 | // returns a command and arguments that pass this command to the shell. The |
no outgoing calls