From ce00617796520790d2d33e919cd7b4c0d4fb5a78 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 13 Dec 2021 18:58:24 +0100 Subject: [PATCH] Allow using single quotes in output file names Gnuplot single-quoted strings have to escape single-quote characters by doubling them. --- src/Gnuplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 18a8057..5f83824 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -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)