From c1deb4789769d9166774247498112c35972b3759 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 Oct 2014 14:11:08 +1300 Subject: Error out on bad prompt calls --- bash/bashrc.d/prompt.bash | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bash/bashrc.d/prompt.bash') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 9a96ed33..b9a834b8 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -243,6 +243,10 @@ prompt() { printf '{%d}' "$jobc" fi ;; + # Print error + *) + printf '%s: Unknown command %s\n' "$FUNCNAME" "$1" >&2 + return 1 esac } -- cgit v1.2.3