aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/bb.h b/bb.h
index bdbc0c1..9e18345 100644
--- a/bb.h
+++ b/bb.h
@@ -225,13 +225,13 @@ static const char *bbcmdfn = "bb() {\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"
-" if test $# -gt 0; then printf \"%s\\0\" \"$arg\" \"$@\" >> $BBCMD\n"
-" else sed \"s/\\([^\\x00]\\+\\)/$arg\\1/g\" >> $BBCMD; fi\n"
-" return\n"
-" fi\n"
-" printf \"%s\\0\" \"$arg\" >> $BBCMD\n"
-" done\n"
+" if expr \"$arg\" : \"^+[^:]*:$\" >/dev/null; then\n"
+" if test $# -gt 0; then printf \"$arg%s\\0\" \"$@\" >> $BBCMD;\n"
+" else sed \"s/\\([^\\x00]\\+\\)/$arg\\1/g\" >> $BBCMD; fi;\n"
+" return;\n"
+" fi;\n"
+" printf \"%s\\0\" \"$arg\" >> $BBCMD;\n"
+" done;\n"
"}\n"
"ask() {\n"
#ifdef ASK