From a34502935ef1bb8e4c631e15bf7b3d6c70333b67 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Mon, 17 Oct 2016 13:55:48 -0500 Subject: [PATCH] fixed sqrt function that had an extra { in it --- .bash_functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.bash_functions b/.bash_functions index 00ba38f..d6ba398 100644 --- a/.bash_functions +++ b/.bash_functions @@ -54,10 +54,11 @@ fix_spaces() sqrt() { - [ $# -ne 1 ] && { + [ $# -ne 1 ] && + { echo 'Usage: sqrt number' exit 1 - } || { + } || echo -e "sqrt($1)\nquit\n" | bc -q -i | head -2 | tail -1 }