b1d11bf45e
hush: more efficient filtering of "safe" arithmetic
Denis Vlasenko
2009-04-06 12:24:58 +00:00
d0b4a8c285
hush: add <> and () as "safe" arith chars
Denis Vlasenko
2009-04-06 12:09:55 +00:00
bfbc971f9f
hush: print cd error to stderr; use fopen_or_warn in builtin_source; prepare builtin_unset for function support libbb: do not clear errno in fopen_or_warn
Denis Vlasenko
2009-04-06 12:04:42 +00:00
b0a6478eef
hush: fix "export a=a b=b" (was not setting and exporting b)
Denis Vlasenko
2009-04-06 11:33:07 +00:00
c8d27334a0
hush: update TODO list; + my usual pointless tweaks :(
Denis Vlasenko
2009-04-06 10:47:21 +00:00
d3f973eab2
hush: mark SIGHUP TODOs better; don't disable SIGHUP for now, small tweaks to comments
Denis Vlasenko
2009-04-06 10:21:42 +00:00
0bb4a23506
hush: fix all testsuite failures on NOMMU except memory leak. known TODOs: we do not pass traps and positional args yet.
Denis Vlasenko
2009-04-05 01:42:59 +00:00
609f2ab434
hush: enable NOMMU re-execution logic. Some testsuite entries fail on NOMMU. Before it was much worse. No regressions on MMU, size:
Denis Vlasenko
2009-04-04 23:15:14 +00:00
9aa7d6fdc5
hush: preparatory patch for NOMMU-safe { list } handling.
Denis Vlasenko
2009-04-04 22:47:50 +00:00
34d4d89b2d
hush: fix NOMMU hangs in pseudo_exec_argv. Add forgotted setting of signal mask. Reuse same help string in all shells.
Denis Vlasenko
2009-04-04 20:24:37 +00:00
b6e6556b31
hush: improve parse_stream: does not require parsing context struct; cleans up on syntax errors (we used to leak memory in this case); much simplified interface to the rest of hush.
Denis Vlasenko
2009-04-03 16:49:04 +00:00
98c52645c0
split math code out of ash and into a standalone library so we can use it in any shell (like hush!)
Mike Frysinger
2009-04-02 10:02:37 +00:00
551ffdccea
more of pointless whitespace fixes
Denis Vlasenko
2009-04-01 19:48:05 +00:00
bd79c3d337
dhcpd: remember and record hostnames; optimize get_option dumpleases: show hostnames
Denis Vlasenko
2009-04-01 12:36:09 +00:00
88b8f0a347
sendmail: update by Vladimir build system: tweak for rare case where include/autoconf.h does not get updated
Denis Vlasenko
2009-03-31 23:41:53 +00:00
d308106245
hust_test/*: use "$THIS_SH" instead of hush
Denis Vlasenko
2009-03-31 22:14:32 +00:00
422cd7c81c
hush: make ^C work again, ^Z probably isn't working
Denis Vlasenko
2009-03-31 12:41:52 +00:00
abedaac842
hush: do not reset sighaldlers after fork - instead, prevent them from doing any harm if they will be called. saves many sigaction calls on every fork.
Denis Vlasenko
2009-03-31 12:03:40 +00:00
d5762932fb
hush: rework signal and trap handling. Some smaller bits are TODO, expect minor breakage
Denis Vlasenko
2009-03-31 11:22:57 +00:00
d690f68554
implement unset semantics as required by POSIX
Mike Frysinger
2009-03-30 06:50:54 +00:00
5f9f1506ad
fix DOC build output to be like kbuild standard
Mike Frysinger
2009-03-30 05:26:34 +00:00
0080ea7992
update trap poisx link
Mike Frysinger
2009-03-30 03:50:07 +00:00
87824e0e50
do not automatically display job information when the shell is not interactive
Mike Frysinger
2009-03-30 00:19:30 +00:00
681a4b7f06
enable trap tests
Mike Frysinger
2009-03-29 23:49:46 +00:00
9f8128f480
first pass at trap support in hush
Mike Frysinger
2009-03-29 23:49:37 +00:00
0d907eab6c
modutils: dont pass NULL options to init_module()
Denis Vlasenko
2009-03-29 17:25:14 +00:00
a83dbd4146
build system: hdparm -d is not that dangerous, remove warning
Denis Vlasenko
2009-03-29 17:13:20 +00:00
a6eb7f4ddf
sendmail: add more example in usage text
Denis Vlasenko
2009-03-29 16:53:25 +00:00
e1de3af989
module loading for 2.4: use fd-based io instead of FILE based; use xlseek and xread; simpler check for ELF signature.
Denis Vlasenko
2009-03-29 16:38:59 +00:00
fd303b11ef
add test cases for trap ... but disabled for now until trap support is committed
Mike Frysinger
2009-03-29 09:54:40 +00:00
038fe44713
sysctl: move code around to get rid of forward references. (incidentally it helps gcc to make code smaller)
Denis Vlasenko
2009-03-29 02:23:16 +00:00
b975febeea
mark msh as deprecated
Mike Frysinger
2009-03-29 00:52:41 +00:00
40b8dc410e
use bb_strtou() in umask/wait and check errno to see if there was a problem rather than using endp
Mike Frysinger
2009-03-29 00:50:30 +00:00
8ec1c9dc6e
make sure we check job status whenever updating the prompt
Mike Frysinger
2009-03-29 00:45:26 +00:00
0b87e4ad15
test for invalid named variables
Mike Frysinger
2009-03-28 21:06:38 +00:00
7c3e52c1bd
do not let handle_dollar() accept vars that start with a digit
Mike Frysinger
2009-03-28 21:06:22 +00:00
56bdea1b43
implement wait builtin
Mike Frysinger
2009-03-28 20:01:58 +00:00
78f9d8eb7a
add hush tests for parameter expansion
Mike Frysinger
2009-03-28 18:55:34 +00:00
6379bb4fde
implement most POSIX parameter expansions (~+500bytes)
Mike Frysinger
2009-03-28 18:55:03 +00:00
42ab86520e
make sure we exit based on test failure rather than always exiting with 0
Mike Frysinger
2009-03-28 15:43:47 +00:00
25a6ca0dd4
split up feature todo by posix/bash
Mike Frysinger
2009-03-28 13:59:26 +00:00
ad88d5a4cf
unify set handling with command line processing, fixup set argv processing so it doesnt clobber argv when setting options, and barf on unhandled set options
Mike Frysinger
2009-03-28 13:44:51 +00:00
19a7ea126a
handle the "-s" command line option that POSIX requires
Mike Frysinger
2009-03-28 13:02:11 +00:00
a71cfa8aa1
rename "-f" (fake) option to "-n" to match POSIX
Mike Frysinger
2009-03-28 12:57:54 +00:00
d006edb2ca
tweak format modifier in debug code to fixup gcc warning
Mike Frysinger
2009-03-28 12:43:53 +00:00
ec2c655702
convert some of the ENABLE_FEATURE_EDITING from CPP if to C if
Mike Frysinger
2009-03-28 12:24:44 +00:00
39456a18a1
stop lying about [[ test support
Mike Frysinger
2009-03-28 12:21:57 +00:00
781b672b37
mkfs.vfat: fix a problem with over-estimating FAT size
Denis Vlasenko
2009-03-28 12:17:20 +00:00