 	Wait for this shell process to finish.
 
 	- returns: itself
-	- throws: `ShellError.ReturnedErrorCode (command: String, errorcode: Int32)` if the exit code is anything but 0.
+	- throws: `ShellError.ReturnedErrorCode (command: String, errorcode: Int)` if the exit code is anything but 0.
 	*/
 	@discardableResult public func finish() throws -> AsyncShellTask {
 		try process.finish()

	}

	/** Wait for command to finish, then return with exit code. */
	public func exitcode () -> Int32 {
		process.waitUntilExit()
		return process.terminationStatus
	}
}


	/**
	Wait until process is finished.

	- throws: `ShellError.ReturnedErrorCode (command: String, errorcode: Int)` if the exit code is anything but 0.
	*/
	public func finish() throws {
		self.waitUntilExit()
		guard self.terminationStatus == 0 else {
			throw ShellError.ReturnedErrorCode(command: commandAsString()!, errorcode: Int(self.terminationStatus))
		}
	}

