commit 1511a7f884b6c954dd8c8e859e453845fc3dc75e
parent 08cfe0843a438927315a1b8c00bc9059010eae6a
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sun, 22 Nov 2020 15:30:30 -0800
Print errors to stderr in include() shell module function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/shell/.config/shell/main b/modules/shell/.config/shell/main
@@ -7,7 +7,7 @@ include() {
local include="${SHELL_MODULE_DIR:?unset}/$1"
test -f "$include" || {
printf "%s: include: '%s': File nonexistent.\n" \
- $__progname $include;
+ $__progname $include 1>&2;
return 1
}
. "$include"