From 8e78c9da1a1b0704c543ab5e88d494dca63ffb74 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sun, 1 Nov 2020 16:42:30 +0300 Subject: [PATCH] bash, aliases: fix command_not_found_handle() --- etc/shell/bash/aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index bd02495..72a5044 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -152,10 +152,10 @@ command_not_found_handle() { #noindex if grep -q '[фывапролджэйцукенгшщзхъячсмитьбю]' 2>&1 > /dev/null <<<"$1"; then ex="$(echo -n "$@" | \ sed "y/йцукенгшщзхъфывапролджэячсмитьбю\.ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,/qwertyuiop\[\]asdfghjkl;\'zxcvbnm,\.\/QWERTYUIOP\{\}ASDFGHJKL:\"ZXCVBNM<>\?/")" - echo "${red}[$@] -> ${green}[${ex}]${rstc}" + echo -e "${red}[$@] -> ${green}[${ex}]${rstc}" bash --rcfile ~/.bashrc -c "$ex" else - echo >&2 "${red}Команда ${green}${1}${red} не найдена.$rstc" + echo >&2 -e "${red}Команда ${green}${1}${red} не найдена.$rstc" fi fi }