fork download
  1. using System;
  2. using System.Diagnostics;
  3.  
  4. public class Test
  5. {
  6. public static void Main(string[] args)
  7. {
  8. Console.WriteLine(args.Length);
  9. Console.WriteLine(Environment.CommandLine);
  10. Console.WriteLine(string.Join("\n", args));
  11.  
  12. if (args.Length == 0)
  13. Process.Start(Environment.CommandLine, @"""Some arg"" last-one").WaitForExit();
  14. }
  15. }
Success #stdin #stdout 0.1s 24008KB
stdin
Standard input is empty
stdout
0
/home/ezxaXz/prog.exe

2
/home/ezxaXz/prog.exe "Some arg" last-one
Some arg
last-one