mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Use string split in alias.
This commit is contained in:
committed by
Fabian Homborg
parent
af7f5f42b6
commit
3e35e6e488
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user