diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-23 16:42:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-23 16:42:16 +0000 |
commit | 73f3711db475ec25769e9ed08bf073d5db15e917 (patch) | |
tree | b243f4e647bc4465d8b83c3ebf60933c97538e8d /bin/csh/func.c | |
parent | 49ef61b214d2c1c164fa8ede893b9e0e73405f71 (diff) |
kill printf builtin. no reason to be a builtin, but furthermore, the
handling of format strings is quite non-compliant.
Diffstat (limited to 'bin/csh/func.c')
-rw-r--r-- | bin/csh/func.c | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/bin/csh/func.c b/bin/csh/func.c index e4b922ac409..df814cb414a 100644 --- a/bin/csh/func.c +++ b/bin/csh/func.c @@ -1,4 +1,4 @@ -/* $OpenBSD: func.c,v 1.18 2003/06/11 21:09:50 deraadt Exp $ */ +/* $OpenBSD: func.c,v 1.19 2003/06/23 16:42:15 deraadt Exp $ */ /* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: func.c,v 1.18 2003/06/11 21:09:50 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: func.c,v 1.19 2003/06/23 16:42:15 deraadt Exp $"; #endif #endif /* not lint */ @@ -1417,33 +1417,3 @@ doeval(Char **v, struct command *t) if (my_reenter) stderror(ERR_SILENT); } - -void -/*ARGSUSED*/ -doprintf(Char **v, struct command *t) -{ - Char **newv; - char **c; - extern int progprintf(int, char **); - int ret; - - gflag = 0; - tglob(v); - if (gflag) { - newv = globall(v); - if (newv == 0) { - stderror(ERR_NAME | ERR_NOMATCH); - return; - } - v = newv; - gargv = 0; - } - - ret = progprintf(blklen(v), c = short2blk(v)); - (void) fflush(cshout); - (void) fflush(csherr); - - blkfree((Char **) c); - if (ret) - stderror(ERR_SILENT); -} |