A dirty tac shrink (-267 bytes)
Pascal Bellard
pascal.bellard at ads-lu.com
Tue May 3 08:28:18 UTC 2011
text data bss dec hex filename
317 0 0 317 13d busybox.org/coreutils/tac.o
40 0 0 40 28 busybox/coreutils/tac.o
--- busybox.org/coreutils/tac.c Tue May 3 00:52:22 2011
+++ busybox/coreutils/tac.c Tue May 3 10:11:07 2011
@@ -33,6 +33,10 @@
int tac_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int tac_main(int argc UNUSED_PARAM, char **argv)
{
+#ifdef CONFIG_SED
+ argv[0] = "1!G;h;$!d";
+ return sed_main(0, --argv);
+#else
char **name;
FILE *f;
struct lstring *line = NULL;
@@ -108,4 +112,5 @@
}
return retval;
+#endif
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tac.u
Type: application/octet-stream
Size: 616 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110503/9dee126b/attachment.obj>
More information about the busybox
mailing list