From 2b52a3d9498ee8a6fe4e484b3b9cb2a51523ce3d Mon Sep 17 00:00:00 2001 From: scbj Date: Mon, 23 Jun 2025 10:55:58 +0200 Subject: [PATCH] (bash) test on behaviour of `sourcing` --- bash-test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bash-test.sh b/bash-test.sh index c7df645..150eca7 100755 --- a/bash-test.sh +++ b/bash-test.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash -if ! $(which $1 &>/dev/null); then +if ! $(which navig &>/dev/null); then echo "command not found" -else - echo "$1 exists" + return 1 fi + +function bash_source_test_function { + echo "sourcing not interrupted" +}