From 3e35e6e48834fc88a7e168177dc65cfecb88ab05 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 10 Feb 2017 13:51:05 +0100 Subject: [PATCH] Use `string split` in `alias`. --- share/functions/alias.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/alias.fish b/share/functions/alias.fish index 5566e2487..f9637ca00 100644 --- a/share/functions/alias.fish +++ b/share/functions/alias.fish @@ -21,7 +21,7 @@ function alias --description 'Creates a function wrapping a command' end return 0 case 1 - set -l tmp (string replace -r "=" '\n' -- $argv) "" + set -l tmp (string split -m 1 "=" -- $argv) "" set name $tmp[1] set body $tmp[2]