Eric Andersen 
							
						 
					 
					
						
						
							
						
						bfae2529b8 
					 
					
						
						
							
							It turns out job control in both hush and lash was broken by the  
						
						... 
						
						
						
						signal handling in cmdedit.c.  Disabling it makes the shells behave
themselves again.  hush isn't quite there, but is getting close...
 -Erik 
						
						
					 
					
						2001-05-17 00:14:27 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						2439a59828 
					 
					
						
						
							
							Remove/replace the "div" call.  
						
						
						
						
					 
					
						2001-05-16 18:53:34 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						8f7a4ad442 
					 
					
						
						
							
							Add missing include, noted by Larry Doolittle.  
						
						
						
						
					 
					
						2001-05-16 17:05:03 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						bf381a0ad8 
					 
					
						
						
							
							Whoops.  Forgot the x.  
						
						
						
						
					 
					
						2001-05-16 15:52:23 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						c55b8d41c1 
					 
					
						
						
							
							Add xgethostbyname and herror_msg* functions.  
						
						
						
						
					 
					
						2001-05-16 15:40:51 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						59df6f7398 
					 
					
						
						
							
							Change 'printf("%s\n", ...)' into 'puts(...)'.  Noted and patched in hostname.c  
						
						... 
						
						
						
						by Larry Doolittle. 
						
						
					 
					
						2001-05-16 14:21:09 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						bc604a2f41 
					 
					
						
						
							
							Move init of a bunch of globals into main so we are at least  
						
						... 
						
						
						
						a bit more reentrant.
 -Erik 
						
						
					 
					
						2001-05-16 05:24:03 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						f72f562b2f 
					 
					
						
						
							
							Fix the behavior of local shell variables to match that of bash and ash.  
						
						... 
						
						
						
						-Erik 
						
						
					 
					
						2001-05-15 23:21:41 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						9abfe85e96 
					 
					
						
						
							
							Suggestion from Larry: no format string, use fputs instead.  
						
						
						
						
					 
					
						2001-05-15 20:11:49 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						50ae3102fb 
					 
					
						
						
							
							Patch from Adam Heath <doogie@debian.org> to add arbitrary header support  
						
						... 
						
						
						
						to wget, so it can now do funky interactive things with cgi scripts. 
						
						
					 
					
						2001-05-15 17:51:37 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						55f9872616 
					 
					
						
						
							
							This patch from Adam Heath <doogie@debian.org>, makes print_file  
						
						... 
						
						
						
						(used by cat, grep, sed, etc) quite a bit faster. 
						
						
					 
					
						2001-05-15 17:48:09 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						c911a4389b 
					 
					
						
						
							
							Patch from Vladimir:  
						
						... 
						
						
						
						1) fixed a bug that could crash df, mount, and umount applets if the root
    device name was longer then the word "root" (/dev/loop1 vs /dev/root) -
    2) severl functions needed static declaration in the umount applet
    3) update declaration for function in last_char_is() in libbb 
						
						
					 
					
						2001-05-15 17:42:16 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						15649c11f3 
					 
					
						
						
							
							Oops.  I left in some debug noise.  
						
						
						
						
					 
					
						2001-05-15 17:28:26 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						20a69a77d2 
					 
					
						
						
							
							Write set_local_var() and fixup lookup_param() so you can now use  
						
						... 
						
						
						
						shell local variables.
 -Erik 
						
						
					 
					
						2001-05-15 17:24:44 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						78a7c99f7f 
					 
					
						
						
							
							This patch covers one big part of variable handling.  
						
						... 
						
						
						
						$ a=b foo
should be handled correctly.
$ a=b
is parsed OK, but the actual variable setting is not
yet written.  Except for some weird exceptions related
to quoting rules, this code passes (matches ash behavior)
all the tests I threw at it.
If someone now writes set_local_var(), and updates lookup_param()
to match, we can claim success!
       - Larry 
						
						
					 
					
						2001-05-15 16:30:25 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						be9f44a7df 
					 
					
						
						
							
							Fix incorrect length passed to accept noted by Larry Doolittle.  
						
						
						
						
					 
					
						2001-05-15 03:05:39 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						336480fe6f 
					 
					
						
						
							
							Added some testcases for grep and sed (many more could still be added)  
						
						
						
						
					 
					
						2001-05-14 21:18:54 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						d928accbbd 
					 
					
						
						
							
							...Need to print just a few more newlines.  
						
						
						
						
					 
					
						2001-05-14 20:44:26 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						2416dfc3c9 
					 
					
						
						
							
							A compromise solution for insmod  
						
						
						
						
					 
					
						2001-05-14 20:03:04 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						dd527d3c62 
					 
					
						
						
							
							...And now that we're chomping lines, we need to re-add the newline later...  
						
						
						
						
					 
					
						2001-05-14 19:53:08 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						9de2659264 
					 
					
						
						
							
							We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.  
						
						
						
						
					 
					
						2001-05-14 19:44:44 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						35e59bed97 
					 
					
						
						
							
							Fixed a subtle bug in the handling of -l and -c flags.  
						
						
						
						
					 
					
						2001-05-14 19:40:32 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						452cc1f293 
					 
					
						
						
							
							Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work  
						
						
						
						
					 
					
						2001-05-14 19:23:02 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						9496466044 
					 
					
						
						
							
							Follow symbolic links when searching for modules.  
						
						
						
						
					 
					
						2001-05-14 18:27:25 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						14d354312a 
					 
					
						
						
							
							Per suggestion from Vladimir, eliminate check_wildcard_match(), which  
						
						... 
						
						
						
						was only being used by insmod these days.
Also, I spent a minute adjusting insmod so that it first searches
/lib/modules/`uname -r` and then (if that fails) searches /lib/modules,
which makes bb insmod behave much more like the real insmod, and should
avoid nasty surprises (such as the recent "Modutils vs. Busybox..."
thread).
 -Erik 
						
						
					 
					
						2001-05-14 17:07:32 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						cb378a5267 
					 
					
						
						
							
							Add missing periods and delete superfluous whitespace.  
						
						
						
						
					 
					
						2001-05-14 06:35:15 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						a17b3631fe 
					 
					
						
						
							
							Do not ever change permissions on existing directories, only  
						
						... 
						
						
						
						on directories we created while extracting a tarball.  Fix
based on bug report and patch from Konstantin Boldyshev
<konst@linuxassembly.org >
 -Erik 
						
						
					 
					
						2001-05-13 15:39:30 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						95a349f427 
					 
					
						
						
							
							When doing a 'wget -O -' turn on the quiet flag, lest the status bar  
						
						... 
						
						
						
						noise get mingled with the retrieved webpage.
 -Erik 
						
						
					 
					
						2001-05-13 00:55:54 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						ddb00545b7 
					 
					
						
						
							
							A patch from Aaron Lehmann <aaronl@vitelus.com> to fix a  
						
						... 
						
						
						
						crash on a broken regexp. 
						
						
					 
					
						2001-05-13 00:48:09 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						4819c3d477 
					 
					
						
						
							
							Make the locale stuff only do the getpid==1 check if BB_INIT is defined  
						
						
						
						
					 
					
						2001-05-13 00:33:16 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Whitley 
							
						 
					 
					
						
						
							
						
						1f3b9f297e 
					 
					
						
						
							
							Added support for 'r' command in sed.  
						
						
						
						
					 
					
						2001-05-11 22:27:13 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						cfa88ecb72 
					 
					
						
						
							
							Fix up some silly warnings  
						
						
						
						
					 
					
						2001-05-11 18:08:16 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						5f265b755a 
					 
					
						
						
							
							Fix a segfault in lash, hush, and cmdedit.  Each of these used  
						
						... 
						
						
						
						xgetcwd, but did not check the return for a NULL, and then continued
to call strlen on the NULL when the cwd had been removed from under it.
 -Erik 
						
						
					 
					
						2001-05-11 16:58:46 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						9d94deabd3 
					 
					
						
						
							
							Use xgetcwd  
						
						
						
						
					 
					
						2001-05-11 16:36:03 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						238da24620 
					 
					
						
						
							
							Fix the chown usage text, also thanks to Lars Kellogg-Stedman <lars@larsshack.org>  
						
						
						
						
					 
					
						2001-05-11 16:31:46 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						2b02ab9606 
					 
					
						
						
							
							This patch from Lars Kellogg-Stedman, fixes the behavior of  
						
						... 
						
						
						
						chown to be consistant with GNU chown, so that it follows
symlinks (who cares about the perms on a link anyways?) unless
the -h option is supplied.
 -Erik 
						
						
					 
					
						2001-05-11 15:55:41 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						eb5f433736 
					 
					
						
						
							
							Check that putenv succeeded, suggested by Jonas Holmberg.  
						
						
						
						
					 
					
						2001-05-11 15:16:28 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						c96381be40 
					 
					
						
						
							
							Fix env usage information.  
						
						
						
						
					 
					
						2001-05-11 14:28:17 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						5b44f48afc 
					 
					
						
						
							
							Fix handling of '-' option and way that variables are added to the  
						
						... 
						
						
						
						environment from Jonas Holmberg <jonas.holmberg@axis.com >.  Fix
handling of command options by adding + to getopt string. 
						
						
					 
					
						2001-05-11 14:26:29 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						f3e79ba6e3 
					 
					
						
						
							
							Fix symlink removal problem noted by Erik Andersen.  
						
						
						
						
					 
					
						2001-05-11 02:35:36 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						6e91f69a0d 
					 
					
						
						
							
							Add installation instructions from Tomas Pospisek <tpo_hp@sourcepole.ch>.  
						
						
						
						
					 
					
						2001-05-10 14:12:20 +00:00 
						 
				 
			
				
					
						
							
							
								Matt Kraai 
							
						 
					 
					
						
						
							
						
						854125f6e6 
					 
					
						
						
							
							Make stdio functions which can be interrupted by the progressmeter timer  
						
						... 
						
						
						
						recover gracefully from EINTR. 
						
						
					 
					
						2001-05-09 19:15:46 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						d283e1cfe9 
					 
					
						
						
							
							Bump version to 0.52pre  
						
						
						
						
					 
					
						2001-05-09 17:31:27 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						1a6d39b259 
					 
					
						
						
							
							A few more structural updates for job control.  
						
						... 
						
						
						
						-Erik 
						
						
					 
					
						2001-05-08 05:11:54 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						0a36de0580 
					 
					
						
						
							
							Fix a stupid segfault caused by dereferencing a NULL ptr.  
						
						... 
						
						
						
						-Erik 
						
						
					 
					
						2001-05-08 04:25:46 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						45e92ba2ce 
					 
					
						
						
							
							This patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works.  
						
						... 
						
						
						
						This way leaks memory, but oh well.  We will probably fix that when we get
around to doing local variables. 
						
						
					 
					
						2001-05-07 23:53:09 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						8cd16d8fd3 
					 
					
						
						
							
							This syncs things with Vladimir's latest patches.  Also gets  
						
						... 
						
						
						
						rid of useless 'const int' declarations.
 -Erik 
						
						
					 
					
						2001-05-07 23:11:23 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						186bf1defc 
					 
					
						
						
							
							This is Vladimir's update to last_char_is().  Since 'char *' is  
						
						... 
						
						
						
						the least common denominator, I modified it to use that (not const),
which will minimize the need for casting elsewhere. 
						
						
					 
					
						2001-05-07 23:10:16 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						de0ca0cd9e 
					 
					
						
						
							
							Silence cut so it doesn't whine during compilation  
						
						
						
						
					 
					
						2001-05-07 23:07:17 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Andersen 
							
						 
					 
					
						
						
							
						
						f3f9f3efa7 
					 
					
						
						
							
							A patch from Vladimir to simplify chomp()  
						
						
						
						
					 
					
						2001-05-07 23:02:39 +00:00