From 314454eb4bcf6a422c07a53e8302d1a4b19b4512 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 4 Jun 2015 12:53:08 +1200 Subject: Correct argument test in bd() and prompt() --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/prompt.bash') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index d9a99c8c..9ade2c80 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -2,7 +2,7 @@ prompt() { # If no arguments, print the prompt strings as they are - if [[ ! $1 ]] ; then + if ! (($#)) ; then declare -p PS1 PS2 PS3 PS4 return fi -- cgit v1.2.3