From 8927f8fbc66ae5ac57ee875aea556265cfc0e8ce Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 28 Nov 2016 07:28:06 -0500 Subject: [PATCH] zsh: Return 0 from command_not_found_handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "The function should return status zero if it successfully handled the command, or non-zero status if it failed. In the latter case the standard handling is applied: ‘command not found’ is printed to standard error and the shell exits with status 127." - http://zsh.sourceforge.net/Doc/Release/Command-Execution.html Needed after changes in https://github.com/termux/termux-packages/pull/566 where the command-not-found program no longer exists itself with 0. --- packages/zsh/build.sh | 6 +++--- packages/zsh/etc-zshrc | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/zsh/build.sh b/packages/zsh/build.sh index 4d036b385..1d4014a85 100644 --- a/packages/zsh/build.sh +++ b/packages/zsh/build.sh @@ -1,9 +1,9 @@ -TERMUX_PKG_HOMEPAGE=http://zsh.sourceforge.net/ +TERMUX_PKG_HOMEPAGE=https://www.zsh.org TERMUX_PKG_DESCRIPTION="Shell designed for interactive use, although it is also a powerful scripting language" _FOLDERVERSION=5.2 TERMUX_PKG_VERSION=${_FOLDERVERSION}.0 -TERMUX_PKG_BUILD_REVISION=4 -TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/zsh/zsh/$_FOLDERVERSION/zsh-${_FOLDERVERSION}.tar.xz +TERMUX_PKG_BUILD_REVISION=5 +TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/zsh/zsh/$_FOLDERVERSION/zsh-${_FOLDERVERSION}.tar.xz TERMUX_PKG_RM_AFTER_INSTALL="bin/zsh-${_FOLDERVERSION}" TERMUX_PKG_DEPENDS="libandroid-support, ncurses, termux-tools, command-not-found" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-etcdir=$TERMUX_PREFIX/etc --disable-gdbm --disable-pcre ac_cv_header_utmp_h=no" diff --git a/packages/zsh/etc-zshrc b/packages/zsh/etc-zshrc index 4d78a6ec7..c384e3896 100644 --- a/packages/zsh/etc-zshrc +++ b/packages/zsh/etc-zshrc @@ -1,3 +1,4 @@ command_not_found_handler() { @TERMUX_PREFIX@/libexec/termux/command-not-found $1 + return 0 }