commit 51276800e354aa27887eb12477973abdfada992d
parent 9e0e6bed262060fec25465f1412273e6e22ff178
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 5 Oct 2018 16:25:03 -0700
Use $* to concatenate array args
Rather than injecting $@ into the middle of a string, use $* which joins
the array elements into a string using IFS.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.sh_functions b/.sh_functions
@@ -3,5 +3,5 @@
# Sets xterm title to $1.
function tt {
- echo -n "\033]0;${@}\007"
+ echo -n "\033]0;$*\007"
}