Browse Source

zsh: Exit with error in command_not_found_handler

Fixes #2655.
android-5
Fredrik Fornwall 6 years ago
parent
commit
997acb7b4f
  1. 2
      packages/zsh/build.sh
  2. 3
      packages/zsh/etc-zshrc

2
packages/zsh/build.sh

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

3
packages/zsh/etc-zshrc

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

Loading…
Cancel
Save