summary refs log tree commit diff
path: root/src/arith.y
diff options
context:
space:
mode:
authorherbert <herbert@gondor.apana.org.au>2005-02-28 21:47:22 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2005-09-26 18:33:04 +1000
commit25c3f7b660bbed01a81b44690de1e89c4086b069 (patch)
tree9cc2c1164e2e16b39570fde537753a312e6d1301 /src/arith.y
parentOnly set skipcount for break and continue. (diff)
downloaddash-25c3f7b660bbed01a81b44690de1e89c4086b069.tar.gz
dash-25c3f7b660bbed01a81b44690de1e89c4086b069.zip
Removed expcmd built-in.
Diffstat (limited to 'src/arith.y')
-rw-r--r--src/arith.y40
1 files changed, 0 insertions, 40 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>