From 4fd18d5e38fc4f2fb120da279af6f9335b4d6899 Mon Sep 17 00:00:00 2001 From: hyrodium Date: Mon, 16 Oct 2023 23:47:12 +0900 Subject: [PATCH] fix for `cmd::Cmd` --- src/Replay.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Replay.jl b/src/Replay.jl index bf27c16..aa7874d 100644 --- a/src/Replay.jl +++ b/src/Replay.jl @@ -71,7 +71,7 @@ function type_with_ghost(repl_script::AbstractString, mode) clearlines(H) end -function setup_pty(julia_project="@."::AbstractString, cmd=`--color=yes`) +function setup_pty(julia_project="@."::AbstractString, cmd::Cmd=`--color=yes`) pts, ptm = open_fake_pty() blackhole = Sys.isunix() ? "/dev/null" : "nul" julia_exepath = joinpath(Sys.BINDIR, Base.julia_exename()) @@ -84,7 +84,7 @@ function setup_pty(julia_project="@."::AbstractString, cmd=`--color=yes`) run(`$(julia_exepath) -e 'using Pkg; Pkg.instantiate()'`) # Initialize REPL run( - ```$(julia_exepath) -i -e 'print("\x1b[?25l")' $(split(cmd))```, + ```$(julia_exepath) -i -e 'print("\x1b[?25l")' $cmd```, pts, pts, pts;