Shell: Fixed memory leak caused by fish. Closes #531

This commit is contained in:
Dylan Araps 2016-12-15 20:55:07 +11:00
parent 3983110dbd
commit 68c9933120

View file

@ -522,7 +522,8 @@ get_shell() {
;;
"fish")
shell+="$(fish -c 'printf "%s" "$FISH_VERSION"')"
shell+="$(fish --version)"
shell="${shell/fish, version}"
;;
esac
shell="${shell/\(*\)}"