From 97becc814a3a705594df436833cb738842132d6c Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sun, 19 Jun 2022 22:52:59 -0300 Subject: [PATCH] Safer string split usage --- functions/replay.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/replay.fish b/functions/replay.fish index 88ffc30..ba56ee2 100644 --- a/functions/replay.fish +++ b/functions/replay.fish @@ -24,7 +24,7 @@ function replay --description "Run Bash commands replaying changes in Fish" string replace --all -- \\n \n ( for line in $out - if string split $sep $line | read --local --line name value + if string split -- $sep $line | read --local --line name value set --append env $name contains -- $name SHLVL PS1 BASH_FUNC || test "$$name" = "$value" && continue