aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/bc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/bc.sh')
-rw-r--r--sh/shrc.d/bc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/shrc.d/bc.sh b/sh/shrc.d/bc.sh
index aee88e09..591b4359 100644
--- a/sh/shrc.d/bc.sh
+++ b/sh/shrc.d/bc.sh
@@ -6,8 +6,9 @@
bc() {
# Add --quiet to stop the annoying welcome banner
- [ -e "$HOME"/.cache/sh/opt/bc/quiet ] &&
+ if [ -e "$HOME"/.cache/sh/opt/bc/quiet ] ; then
set -- --quiet "$@"
+ fi
# Run bc(1) with the concluded arguments
command bc "$@"