diff options
Diffstat (limited to '')
-rw-r--r-- | src/arith.y | 40 | ||||
-rw-r--r-- | src/builtins.def | 1 |
2 files changed, 0 insertions, 41 deletions
diff --git a/src/arith.y b/src/arith.y index be836c8..35d012d 100644 --- a/src/arith.y +++ b/src/arith.y @@ -137,46 +137,6 @@ arith(s) } -/* - * The exp(1) builtin. - */ -int -expcmd(argc, argv) - int argc; - char **argv; -{ - const char *p; - char *concat; - char **ap; - long i; - - if (argc > 1) { - p = argv[1]; - if (argc > 2) { - /* - * concatenate arguments - */ - STARTSTACKSTR(concat); - ap = argv + 2; - for (;;) { - while (*p) - STPUTC(*p++, concat); - if ((p = *ap++) == NULL) - break; - STPUTC(' ', concat); - } - STPUTC('\0', concat); - p = grabstackstr(concat); - } - } else - p = nullstr; - - i = arith(p); - - out1fmt("%ld\n", i); - return (! i); -} - /*************************/ #ifdef TEST_ARITH #include <stdio.h> diff --git a/src/builtins.def b/src/builtins.def index 2fa6d5b..1f8c4f4 100644 --- a/src/builtins.def +++ b/src/builtins.def @@ -59,7 +59,6 @@ echocmd echo evalcmd -s eval execcmd -s exec exitcmd -s exit -expcmd exp let exportcmd -as export -as readonly falsecmd -u false histcmd -h -u fc |