diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b61af9..3d833b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.21.1) # Project # NOTE: DON'T USE TRAILING ZEROS IN VERSIONS project(CLIFp - VERSION 0.9.2 + VERSION 0.9.2.1 LANGUAGES CXX DESCRIPTION "Command-line Interface for Flashpoint" ) @@ -14,7 +14,7 @@ set(FORMAL_NAME "CLI Flashpoint") string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LC) string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC) -set(TARGET_FP_VERSION_PREFIX 11.0) +set(TARGET_FP_VERSION_PREFIX 11.1) # C++ set(CMAKE_CXX_STANDARD 20) diff --git a/src/task/t-exec_linux.cpp b/src/task/t-exec_linux.cpp index 296453f..a450a5c 100644 --- a/src/task/t-exec_linux.cpp +++ b/src/task/t-exec_linux.cpp @@ -132,9 +132,9 @@ QString TExec::escapeForShell(const QString& argStr) inQuotes = !inQuotes; if(inQuotes) - escapedArgs.append(stdInQuotesEscapes.contains(chr) ? '^' + chr : chr); + escapedArgs.append(stdInQuotesEscapes.contains(chr) ? '\\' + chr : chr); else - escapedArgs.append(curOutQuotesEscapes.contains(chr) ? '^' + chr : chr); + escapedArgs.append(curOutQuotesEscapes.contains(chr) ? '\\' + chr : chr); } return escapedArgs; diff --git a/src/task/t-exec_win.cpp b/src/task/t-exec_win.cpp index 79efc4f..cfa9a64 100644 --- a/src/task/t-exec_win.cpp +++ b/src/task/t-exec_win.cpp @@ -118,5 +118,7 @@ void TExec::logPreparedProcess(const QProcess* process) emit eventOccurred(NAME, LOG_EVENT_FINAL_EXECUTABLE.arg(process->program())); emit eventOccurred(NAME, LOG_EVENT_FINAL_PARAMETERS.arg(!process->nativeArguments().isEmpty() ? process->nativeArguments() : + !process->arguments().isEmpty() ? + "{\"" + process->arguments().join(R"(", ")") + "\"}" : "")); }