aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-09-07 21:47:22 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-09-07 21:47:22 -0700
commit52a2b306922bb3db90491109380483f94c88ee21 (patch)
treeab6f121c9285832b5d747ee55b04ad540f8263f3
parent1da8fd266075f26a02ca8bbf2a6ebf86255b0e6b (diff)
Fixed mistake in `bb` function conditional
-rw-r--r--bb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.c b/bb.c
index 3349272..0bdfa68 100644
--- a/bb.c
+++ b/bb.c
@@ -158,7 +158,7 @@ static const char *T_LEAVE_BBMODE = T_OFF(T_MOUSE_XY ";" T_MOUSE_CELL ";" T_MOUS
static const char *T_LEAVE_BBMODE_PARTIAL = T_OFF(T_MOUSE_XY ";" T_MOUSE_CELL ";" T_MOUSE_SGR) T_ON(T_WRAP);
static const char *bbcmdfn = "bb() {\n"
-" if $# -eq 0; then cat >> $BBCMD; return; fi\n"
+" if test $# -eq 0; then cat >> $BBCMD; return; fi\n"
" for arg; do\n"
" shift;\n"
" if echo \"$arg\" | grep \"^+[^:]*:$\" >/dev/null 2>/dev/null; then\n"