Process.Start fails with 'unterminated quoted string' in Linux
I am trying to run 7z to extract some files. The command seems to work if I just run it from the shell directly, but not from code. Maybe it's not the exact same, and I don't realize it.
So I'm doing this:
//Unpack dump with 7zStringBuilder argument = new($"\"{Config.zipPath}\" x \"{dumpPath}\" -so | \"{Config.zipPath}\" x -y -si -ttar");foreach (string file in new[] { "vn", "vn_titles" /* and other strings */ }) { argument.Append($" db/{file} db/{file}.header");}Process.Start(Config.shell, string.Format(Config.arguments, argument)).WaitForExit();
//Unpack dump with 7zStringBuilder argument = new($"\"{Config.zipPath}\" x \"{dumpPath}\" -so | \"{Config.zipPath}\" x -y -si -ttar");foreach (string file in new[] { "vn", "vn_titles" /* and other strings */ }) { argument.Append($" db/{file} db/{file}.header");}Process.Start(Config.shell, string.Format(Config.arguments, argument)).WaitForExit();
The config file is a list of key=value pairs that get loaded into the static