GetCommandLine linux *true* equivalent
Similar question to Linux equivalent of GetCommandLine and CommandLineToArgv Is it possible to get the raw command line in linux? The file /proc/self/cmdline is destroyd. ./a.out files="file 1","file 2" param="2" prints ./a.outfiles=file 1,file 2param=2 which is junk Escaping command line does work for all arguments but the first. ./a.out files=\"fil 1\",\"fil 2\"\ param=\"2\" prints ./a.outfiles="fil1","fil2" param="2" You can't do that. The command line arguments are actually passed to the new process as individual strings. See the linux kernel source: kernel_execve Note that kernel_execve(.