- # launch a command with some arguments
- init(command: String, arguments: String...)
- do
- execute(command, arguments, 0)
+ # The executable run
+ # Is a filepath, or a executable found in PATH
+ var command: String
+
+ # The arguments of the command
+ # Starts with the first real arguments---ie. does not include the progname (`argv[0]`, in C)
+ var arguments: nullable Array[String]
+
+ # Launch a command with some arguments
+ init(command: String, arguments: String...) is old_style_init do
+ self.command = command
+ self.arguments = arguments
+ execute