zsh: Exit with error in command_not_found_handler

Fixes #2655.
This commit is contained in:
Fredrik Fornwall 2018-07-15 17:50:13 +02:00
parent 6c50662bba
commit a0a6d2d46d
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.zsh.org
TERMUX_PKG_DESCRIPTION="Shell with lots of features"
TERMUX_PKG_VERSION=5.5.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=35dd75e44a3bbc9d5eefe77a9f5504a19eeeac1ca91a36ca15cff65844b92f7a
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/zsh-${TERMUX_PKG_VERSION}.tar.xz
# Remove hard link to bin/zsh as Android does not support hard links:

View File

@ -1,6 +1,5 @@
command_not_found_handler() {
@TERMUX_PREFIX@/libexec/termux/command-not-found $1
return 0
@TERMUX_PREFIX@/libexec/termux/command-not-found $1 || exit $?
}
PS1='%# '