Skip to content

Commit

Permalink
Safer string split usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Jun 20, 2022
1 parent bf47372 commit 97becc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/replay.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97becc8

Please sign in to comment.