Eric Andersen
a03d86cf54
Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:
...
GNU tr complains on the following:
$ tr a ''
tr: when not truncating set1, string2 must be non-empty
BusyBox tr does not complain:
$ tr a ''
a
^D
0
It should result in an error, not in some spurious output. The attached
patch generates an error.
Matt
2000-07-10 16:38:50 +00:00
Mark Whitley
44735f8744
Applied patch from Matt Kraai as per his email:
...
However, the case of
grep foo$ file
didn't work, due to a problem with the flags used in regular expression
compilation. The attached patch fixes this problem.
---patch-------
Index: grep.c
===================================================================
RCS file: /var/cvs/busybox/grep.c,v
retrieving revision 1.30
diff -u -r1.30 grep.c
--- grep.c 2000/07/04 22:17:01 1.30
+++ grep.c 2000/07/10 08:57:04
@@ -141,8 +141,10 @@
if (argv[optind] == NULL)
usage(grep_usage);
- /* compile the regular expression */
- reflags = REG_NOSUB; /* we're not going to mess with sub-expressions
*/
+ /* compile the regular expression
+ * we're not going to mess with sub-expressions, and we need to
+ * treat newlines right. */
+ reflags = REG_NOSUB | REG_NEWLINE;
if (ignore_case)
reflags |= REG_ICASE;
if ((ret = regcomp(®ex, argv[optind], reflags)) != 0) {
---patch-------
Thanks, Matt, it works great.
2000-07-10 15:50:26 +00:00
Eric Andersen
999bf72f49
More portability updates. Now compiles cleanly vs glibc, libc5, and uclibc
...
(except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due
to missing stuff in the library).
-Erik
2000-07-09 06:59:58 +00:00
Eric Andersen
e9b527ae48
include getopt.h
...
-Erik
2000-07-09 05:56:14 +00:00
Eric Andersen
161cf93404
Fix a bug in get_line_from_file. If the length of the line is (GROWBY * n) +
...
GROWBY - 1, then it writes the null character just after the buffer. Yipe.
Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu> Thanks Matt!
-Erik
2000-07-09 02:38:01 +00:00
Eric Andersen
f12724c21a
The build depends were too strict. I depended on on debhelper (>= 2.0.80)
...
while debhelper 1.1.24 is available for slink. Just forget the dependancy --
it isn't needed.
-Erik
2000-07-09 01:54:33 +00:00
Eric Andersen
a57ba4db64
Argh. More cross libc cleanup. Should be ok now...
...
-Erik
2000-07-08 19:20:49 +00:00
Eric Andersen
2cd439f7f0
More cleanup on umount
...
-Erik
2000-07-08 19:10:29 +00:00
Eric Andersen
bd22ed8067
Update files to reduce dependance on kernel version...
...
-Erik
2000-07-08 18:55:24 +00:00
Eric Andersen
877a71bbf0
Add in tinynet
...
-Erik
2000-07-08 16:19:10 +00:00
Eric Andersen
9cf44e79aa
Doc updates to remove sfdisk.
...
-Erik
2000-07-08 00:09:30 +00:00
Eric Andersen
8f282f1b02
Better description of the BB_FEATURE_USE_DEVPS_PATCH option.
...
-Erik
2000-07-07 23:51:37 +00:00
Eric Andersen
acecc47261
Add in my fix for 2.4.x kernels so /proc/mounts will not have useless
...
deg entries which break mount, df, and friends. Renamed WillThisGoIntoTheKernel
to avoid any confision.
-Erik
2000-07-07 21:22:19 +00:00
Eric Andersen
e6b9dfa967
Removed sfdisk from BusyBox. It was buggy, fat, and we really couldn't
...
maintain it very well, so including it was not very appropriate. Those wanting
an fdisk are invited to grab a copy from util-linux.
-Erik
2000-07-07 20:54:30 +00:00
Eric Andersen
53a955786d
Added in Matt Kraai.
...
-Erik
2000-07-07 20:53:16 +00:00
Eric Andersen
a2c83d885e
Fix a dependancy bug for the docs.
...
-Erik
2000-07-07 20:52:56 +00:00
Eric Andersen
03f9c81cec
Naming fix
...
-Erik
2000-07-07 20:37:12 +00:00
Eric Andersen
bb374a6935
Recognize Matt's poweroff fix.
...
-Erik
2000-07-07 19:33:35 +00:00
Eric Andersen
4c95a28461
Fix for bug #1003 -- BusyBox should now poweroff when asked to
...
do so... Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>
-Erik
2000-07-07 19:30:28 +00:00
Eric Andersen
3312b0b626
Web page update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
-Erik
2000-07-07 19:23:10 +00:00
Eric Andersen
2158092344
This patch finishes the cleanup of all the commands. It also cleans up
...
the remaining chapters -- Matt Kraai <kraai@alumni.carnegiemellon.edu>
-Erik
2000-07-07 19:07:47 +00:00
Eric Andersen
b9eb0233a9
Yet another busybox documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
-Erik
2000-07-07 05:04:24 +00:00
Eric Andersen
b0b732bfe4
Update 'make release' to remove all the .#filename files
...
the CVS leaves lying about...
-Erik
2000-07-06 23:17:16 +00:00
Eric Andersen
03f4c27bd6
Turned some stuff into features that really are features, not apps.
...
-Erik
2000-07-06 23:10:29 +00:00
Eric Andersen
67536ffa43
Fix doc building so the dependancies work properly.
...
-Erik
2000-07-06 22:53:22 +00:00
Eric Andersen
8845adc545
* Fixed tar creation support when reading from stdin ('tar -cf - . ')
...
thanks to Daniel Quinlan <quinlan@transmeta.com>
-Erik
2000-07-06 22:51:35 +00:00
Eric Andersen
02bc25be56
Fixed backspace and delete so they work properly again -- broken
...
since 0.44.
-Erik
2000-07-06 21:29:32 +00:00
Eric Andersen
e5cec4e3ac
More doc patches from Matt Kraai <kraai@alumni.carnegiemellon.edu>.
...
Thanks Matt!
-Erik
2000-07-06 19:59:22 +00:00
Eric Andersen
62bb2d02b6
Remove leftovers of block_device, which disapperared around
...
busybox 0.28.
-Erik
2000-07-06 19:46:22 +00:00
Eric Andersen
a5dbb39dac
Change order.
...
-Erik
2000-07-06 19:11:34 +00:00
Eric Andersen
c8c10c5715
Added (fixed) the '-n' option to fbset. Renumbered the command parameters to
...
put a gap between the normal commands and the fancy commands. This makes it
cleaner to add normal commands. Patch from Jon McClintock <jonm@bluemug.com>.
-Erik
2000-07-06 17:23:23 +00:00
Eric Andersen
f86aee74ce
setkeycodes needs get_console_fd(), so if you disable chvt and deallocvt, but
...
leave setkeycodes active, busybox will not link. Also fix a trivial
use-before-initialize warning. Both fixes from Jon McClintock
<jonm@bluemug.com>.
-Erik
2000-07-06 17:20:46 +00:00
Eric Andersen
b1e379f7f3
Remove some warning with glibc.
...
-Erik
2000-07-06 17:08:38 +00:00
Eric Andersen
78eab2f6c6
Comment on kill.c change.
...
-Erik
2000-07-06 17:06:08 +00:00
Eric Andersen
3cfa9ec09c
Reorganized signal names for better architecture support -- patch
...
thanks to simon wood <simon@mungewell.uklinux.net>
-Erik
2000-07-06 17:05:33 +00:00
Eric Andersen
6f5e281479
DocBook documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
-Erik
2000-07-06 16:58:45 +00:00
Eric Andersen
b2731b11ef
Had an extra tcsetpgrp.
...
-Erik
2000-07-06 16:56:56 +00:00
Eric Andersen
1e03add675
a few minor cleanups.
...
-Erik
2000-07-06 09:56:35 +00:00
Eric Andersen
5d893b6beb
Remove MAXNAMLEN and use BUFSIZ instead.
...
-Erik
2000-07-06 01:57:20 +00:00
Eric Andersen
89bc256c94
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
...
will be removing this stuff from /proc/mounts real soon now I am assured.
-Erik
2000-07-05 19:29:59 +00:00
Eric Andersen
f7cf2f7ef9
* Fix to tr so it recognizes standard escape sequences. Merged common
...
escape seq. code from tr and echo into utility.c. Fix thanks to
Matt Kraai <kraai@alumni.carnegiemellon.edu>.
* This should close Bug #1015 . Please test.
-Erik
2000-07-05 17:26:35 +00:00
Eric Andersen
57ebebfb01
Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu> to
...
simplify ar.c and make it more readable.
-Erik
2000-07-05 17:21:58 +00:00
Eric Andersen
2086e3d679
Some cosmetic updates. Changed "OPTIONS" to "Options".
...
-Erik
2000-07-04 22:17:01 +00:00
Eric Andersen
028fb625f5
More doc updates
...
-Erik
2000-07-04 20:07:13 +00:00
Eric Andersen
5331025f79
A first pass at integrating the SGML docs into the Makefile.
...
A first pass a cleaning up the current SGML (lots more cleanup
is needed though).
-Erik
2000-07-04 19:42:23 +00:00
Eric Andersen
b02c54ebee
* Fix to init.c from Stuart Menefy <Stuart.Menefy@st.com> so that
...
it always sets the controlling terminal before running any programs
-Erik
2000-07-04 19:41:23 +00:00
Eric Andersen
72965e3454
Fixed a potential infinite loop. First delete any chars after the
...
cursor, then delete everything before it. Before this, we would just
delete everything before the cursor and freak out if there were still
chars left (i.e. stuff after the cursor).
-Erik
2000-07-04 06:22:18 +00:00
Eric Andersen
b54833cde0
sh fixes from Marius Groeger <mag@sysgo.de>
...
-Erik
2000-07-03 23:56:26 +00:00
Eric Andersen
7c31ea4e29
Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
...
<dvrabel@arcom.co.uk>. Seems some ftp clients expect the '-g' option
to exist.
-Erik
2000-07-03 14:55:49 +00:00
Eric Andersen
5d41d60f1e
Added support for being a login shell, so things like '-su' or '-sh' (stuff
...
where argv[0][0]=='-') will now always invoke the shell. Now you can use
BusyBox as a login shell.
-Erik
2000-06-29 20:20:14 +00:00