Merge pull request #52 from wentasah/escape-output

Allow using single quotes in output file names
This commit is contained in:
gcalderone 2022-01-03 10:45:19 +01:00 committed by GitHub
commit ab927d0622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -925,7 +925,7 @@ function execall(gp::GPSession; term::AbstractString="", output::AbstractString=
gpexec(gp, "unset multiplot")
gpexec(gp, "set term $term")
end
(output != "") && gpexec(gp, "set output '$output'")
(output != "") && gpexec(gp, "set output '$(replace(output, "'" => "''"))'")
# printstyled("Plotting with terminal: " * terminal() * "\n", color=:blue, bold=true)