Unverified Commit 2c1ff85b authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub
Browse files

core: fix alias_value function

Fixes #5835
parent 052a6dbd
...@@ -51,8 +51,7 @@ function open_command() { ...@@ -51,8 +51,7 @@ function open_command() {
# 1 if it does not exist # 1 if it does not exist
# #
function alias_value() { function alias_value() {
alias "$1" | sed "s/^$1='\(.*\)'$/\1/" (( $+aliases[$1] )) && echo $aliases[$1]
test $(alias "$1")
} }
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment