1 2011-07-08 Herbert Xu <herbert@gondor.apana.org.au>
5 2011-07-07 Herbert Xu <herbert@gondor.apana.org.au>
7 * Optimize dash -c "command" to avoid a fork.
8 * Eliminate unnecessary promotion in echocmd.
10 2011-05-25 Jim Meyering <meyering@redhat.com>
12 * Avoid using undefined handler.
14 2011-05-23 Jim Meyering <meyering@redhat.com>
16 * Avoid gcc warning: variable 'oldstackp' set but not used.
17 * Avoid clang warning about dead store to "size".
19 2011-05-22 Jonathan Nieder <jrnieder@gmail.com>
21 * Make outc an inline function.
23 2011-05-02 Kalle Olavi Niemitalo <kon@iki.fi>
25 * Remove spurious space in descriptions of PS1, PS2, PS4.
27 2011-04-10 Jonathan Nieder <jrnieder@gmail.com>
29 * Remove unused EV_BACKCMD flag.
31 2011-03-15 Herbert Xu <herbert@gondor.apana.org.au>
33 * Fix clobbering of checkkwd.
35 2011-03-15 Jonathan Nieder <jrnieder@gmail.com>
37 * Free IFS state after here document expansion.
38 * Use va_copy when reusing a va_list.
40 2011-03-15 Harald van Dijk <harald@gigawatt.nl>
42 * Let funcnode refer to a function definition, not its first command.
43 * Improve LINENO support.
45 2011-03-15 Brian Koropoff <bkoropoff@gmail.com>
49 2011-03-11 Herbert Xu <herbert@gondor.apana.org.au>
51 * Fix backslash handling in read(1).
53 2011-03-10 Jonathan Nieder <jrnieder@gmail.com>
55 * Dotcmd should exit with zero when doing nothing.
57 2011-03-10 Herbert Xu <herbert@gondor.apana.org.au>
59 * Fix CTLESC clobbering by read(1).
61 2011-03-10 Brian Koropoff <bkoropoff@gmail.com>
65 2011-03-10 Jilles Tjoelker <jilles@stack.nl>
67 * Replace GPL noclobberopen code with the FreeBSD version.
68 * Do not split the result of tilde expansion.
70 2010-11-28 Maciej Żenczykowski <zenczykowski@gmail.com>
72 * Mark status as volatile in exitshell.
74 2010-11-28 Jonathan Nieder <jrnieder@gmail.com>
76 * Use EXEXIT in place of EXEXEC.
77 * Stop documenting EXSHELLPROC.
79 2010-11-28 Gerrit Pape <pape@smarden.org>
81 * Use exit status 127 when the script to run does not exist.
83 2010-11-28 Philipp Weis <pweis@pweis.com>
85 * Document optional open parenthesis for case patterns.
87 2010-11-28 Herbert Xu <herbert@gondor.apana.org.au>
89 * Fixed trap/return regression due to SKIPEVAL removal.
90 * Allow the originator of EXERROR to set the exit status.
91 * Free IFS state in evalbackcmd.
93 2010-10-18 Herbert Xu <herbert@gondor.apana.org.au>
95 * Fix ifsfirst/ifslastp leak in casematch.
97 2010-10-07 Herbert Xu <herbert@gondor.apana.org.au>
99 * Fix EXEXEC status clobbering.
101 2010-09-08 Herbert Xu <herbert@gondor.apana.org.au>
103 * Fix ifsfirst/ifslastp leak.
104 * Fix trailing field bug in read(1).
106 2010-09-08 maximilian attems <max@stro.at>
110 2010-09-08 Jilles Tjoelker <jilles@stack.nl>
112 * Fix varinit ordering that broke fc.
114 2010-07-06 Gerrit Pape <pape@smarden.org>
116 * Check exit for eval NSUBSHELL.
118 2010-07-06 Herbert Xu <herbert@gondor.apana.org.au>
120 * Fix loss of variables when hash collides.
121 * Removed dead code for eval NPIPE.
123 2010-06-28 Gerrit Pape <pape@smarden.org>
125 * Don't clear eflag in evalbackcmd.
127 2010-05-29 Herbert Xu <herbert@gondor.apana.org.au>
129 * Continue after EINTR in read(1) with no pending signals.
131 2010-05-27 Jilles Tjoelker <jilles@stack.nl>
133 * Force fork if any trap is set, not just on EXIT.
134 * Fix corruption of redirections with byte 0x81.
136 2010-05-27 Herbert Xu <herbert@gondor.apana.org.au>
138 * Fix poplocalvar on abnormal exit from function.
139 * Do not poplocalvars prematurely on regular utilities.
140 * Move null redirect checks into caller.
141 * Fix popredir on abnormal exit from built-in.
142 * Fix wait regression where it does not wait for all jobs.
144 2010-05-26 Herbert Xu <herbert@gondor.apana.org.au>
146 * Replace cmdenviron with localvars.
148 2010-05-25 Herbert Xu <herbert@gondor.apana.org.au>
150 * Fix poplocalvar leak.
151 * Move unsetvar functionality into setvareq.
153 2010-05-24 Herbert Xu <herbert@gondor.apana.org.au>
155 * Add localvars nesting, local now fails outside functions.
157 2010-05-03 Gerrit Pape <pape@smarden.org>
159 * Fix command -- crash.
161 2010-04-15 H. Peter Anvin <hpa@zytor.com>
163 * Fix for job control off warning.
165 2010-04-02 Herbert Xu <herbert@gondor.apana.org.au>
167 * Use faccessat if available.
169 2010-04-02 Herbert Xu <herbert@gondor.apana.org.au>
171 * Make trap signal name/number errors non-fatal.
174 2010-04-02 maximilian attems <max@stro.at>
176 * Use TMPDIR in mkbuiltins.
178 2010-03-10 Jilles Tjoelker <jilles@stack.nl>
180 * Fix logical or result value.
182 2010-03-09 Herbert Xu <herbert@gondor.apana.org.au>
184 * Fix binary operator parsing.
186 2009-11-26 Herbert Xu <herbert@gondor.apana.org.au>
188 * Fix off-by-one recordregion in readcmd.
190 2009-09-28 Jim Meyering <meyering@redhat.com>
192 don't read-uninitialized for \177 in a here-doc
193 A DEL (0177, dec 127) byte in a here-document would cause dash to
194 access uninitialized memory at the end of one of the syntax.c tables,
195 since those tables are sized to accommodate a maximum index of
196 BASESYNTAX + 126. Make the generated tables one byte larger.
197 printf ':<<\\E\n\200y\nE'|./dash
198 * src/mksyntax.c (filltable): Use 258, not 257 as the size,
199 so that BASESYNTAX(=130) + 127 is a valid index.
201 Don't emit explicit array dimension in declaration.
203 2009-08-31 Eric Blake <ebb9@byu.net>
205 * Avoid compiler warnings on isdigit.
207 2009-08-31 Matthew Burgess <matthew@linuxfromscratch.org>
209 * Add another missing LC_COLLATE to mkbuiltins.
211 2009-08-31 Herbert Xu <herbert@gondor.apana.org.au>
213 * Fix NUL termination in readcmd.
214 * Lookup PWD after going through CDPATH.
216 2009-08-11 Herbert Xu <herbert@gondor.apana.org.au>
218 * Pass EV_TESTED into evalcmd.
219 * Revert SKIPEVAL into EXEXIT.
221 2009-08-11 Rocky Bernstein <rocky.bernstein@gmail.com>
223 * Add preliminary LINENO support.
225 2009-08-11 Stefan Potyra <stefan.potyra@informatik.uni-erlangen.de>
227 * Honor tab as IFS whitespace when splitting fields in readcmd.
229 2009-06-30 Herbert Xu <herbert@gondor.apana.org.au>
231 * Do not truncate file for FROMTO redirection.
233 2009-06-27 Herbert Xu <herbert@gondor.apana.org.au>
235 * Fix quoted pattern patch breakage.
237 2009-05-23 Herbert Xu <herbert@gondor.apana.org.au>
239 * Fix incorrect savefd conversions.
241 2009-02-22 Herbert Xu <herbert@gondor.apana.org.au>
243 * Fix dowait signal race.
245 * Do not close stderr when /dev/tty fails to open.
246 * Allow newlines after var name in for statements.
247 * Use CHKNL to parse case statements.
249 2009-02-22 Gerrit Pape <pape@smarden.org>
251 * Update manual page to differentiate dash from ash.
253 2009-01-14 Herbert Xu <herbert@gondor.apana.org.au>
255 * Add arith_yacc.h to dash_SOURCES.
258 2009-01-13 Herbert Xu <herbert@gondor.apana.org.au>
262 2009-01-13 Mark Mentovai <mmentovai@gmail.com>
264 * Fixed build on OS X.
266 2008-12-26 Aleksey Cheusov <vle@gmx.net>
268 * Fixed build on NetBSD.
270 2008-10-17 Herbert Xu <herbert@gondor.apana.org.au>
272 * Removed obsolete for loop syntax in manual.
274 2008-08-05 Herbert Xu <herbert@gondor.apana.org.au>
276 * Fixed getcwd build error for the non-glibc case.
278 2008-06-13 Gerrit Pape <pape@smarden.org>
280 * Added missing right parenthesis in manual page.
282 2008-06-13 Herbert Xu <herbert@gondor.apana.org.au>
284 * Fixed 3,4-argument cases for test per POSIX.
285 * Made aexpr/oexpr non-recursive.
286 * Made t_lex reentrant.
287 * Made setinputfd static.
288 * Expand ENV before using it.
289 * Added support for -l.
291 2008-05-19 Herbert Xu <herbert@gondor.apana.org.au>
293 * Fixed non-leading slash treatment in expmeta.
295 2008-05-07 Gerrit Pape <pape@smarden.org>
297 * Fixed lexical error in arithmetic expansion of & and |.
299 2008-05-03 Dan McGee <dpmcgee@gmail.com>
301 * Fixed klibc/klcc build problems.
304 2008-05-03 Herbert Xu <herbert@gondor.apana.org.au>
306 * Fixed _PATH_BSHELL warning.
307 * Test __GLIBC__ instead of _GNU_SOURCE.
308 * Restored warning when getcwd fails.
309 * Set default exvwarning2 arg0 for errors during early initialisation.
310 * Use uninitialized_var to silence bogus warnings.
312 2008-05-02 Herbert Xu <herbert@gondor.apana.org.au>
314 * Restored non-glibc getcwd support.
316 2008-03-07 Larry Doolittle <ldoolitt@recycle.lbl.gov>
318 * Fix cmdtxt crash on if statements.
320 2008-01-01 Herbert Xu <herbert@gondor.apana.org.au>
322 * Fix slash treatment in expmeta.
324 2007-12-27 Herbert Xu <herbert@gondor.apana.org.au>
326 * Add FAKEEOFMARK for expandstr.
327 * Do not show prompts in expandstr.
329 2007-12-23 Gerrit Pape <pape@smarden.org>
331 * If imaxdiv() isn't available, use / and % operators.
333 2007-12-23 Richard M Kreuter <kreuter@progn.net>
335 * Add set +o support.
337 2007-12-23 Steve Langasek <steve.langasek@canonical.com>
339 * Fixed bad pointer arithmetic in evalcommand.
341 2007-11-11 Herbert Xu <herbert@gondor.apana.org.au>
343 * Removed noexpand/length check on eofmark.
344 * Removed herefd hack.
345 * Expand here-documents in the current shell environment.
347 2007-10-20 Herbert Xu <herbert@gondor.apana.org.au>
349 * Added configure --enable-glob and --enable-fnmatch options.
350 * Fix here-doc corruption.
352 2007-10-17 Herbert Xu <herbert@gondor.apana.org.au>
354 * Replace shared illnum message by badnum function.
356 2007-10-17 Oleg Verych <olecom@flower.upol.cz>
358 * Disallow completely blank strings in non-arithmetic context.
360 2007-10-15 Herbert Xu <herbert@gondor.apana.org.au>
362 * Fixed execing of scripts with no hash-bang.
364 2007-10-11 Herbert Xu <herbert@gondor.apana.org.au>
366 * Add assignment support in arithmetic expansions.
367 * Size optimisations in arithmetic lexer.
368 * Add likely flags in expari.
369 * Use setvarint to set OPTIND.
371 2007-10-08 Herbert Xu <herbert@gondor.apana.org.au>
373 * Report substition errors at expansion time.
375 2007-10-06 Herbert Xu <herbert@gondor.apana.org.au>
378 * Treat OPTIND=0 in the same way as OPTIND=1.
380 * Use intmax_t arithmetic in test.
382 2007-10-05 Herbert Xu <herbert@gondor.apana.org.au>
384 * Made grabstackblock an inline wrapper for stalloc.
386 2007-10-04 Herbert Xu <herbert@gondor.apana.org.au>
388 * Fix parsing of ${##1}.
389 * Size optimisations in parameter expansion parser.
391 2007-10-04 Alexey Gladkov <legion@altlinux.org>
393 * Add --enable-static option to configure.
395 2007-09-26 Herbert Xu <herbert@gondor.apana.org.au>
397 * Recognise here-doc delimiters terminated by EOF.
399 2007-09-26 Roy Marples <uberlord@gentoo.org>
401 * Refresh stack pointers after makestrspace in _rmescapes.
403 2007-09-25 Gerrit Pape <pape@smarden.org>
405 * Clarify description of -nt, -ot options to test builtin.
406 * Clarify syntax of the for command.
408 2007-09-25 Herbert Xu <herbert@gondor.apana.org.au>
410 * Do not expand tilde in parameter expansion within quotes.
411 * Move parse-time quote flag detection to run-time.
413 2007-09-24 Herbert Xu <herbert@gondor.apana.org.au>
415 * Do not quote back slashes in parameter expansions outside quotes.
416 * Perform tilde expansion in all parameter expansion words.
417 * Remove superfluous arinest test in CENDQUOTE.
418 * Remove superfluous arinest test for dqvarnest.
419 * Remove superfluous dblquote settings when ending arith.
420 * Remove arithmetic expansion collapsing at parse time.
422 2007-09-22 Oleg Verych <olecom@flower.upol.cz>
424 * White space fixes for test(1).
425 * Use direct comparison instead of strcmp in test(1).
427 2007-09-22 Herbert Xu <herbert@gondor.apana.org.au>
429 * Move flushall to the point just before _exit.
431 2007-09-21 Denis Vlasenko <vda.linux@googlemail.com>
433 * Restore foreground process group on exit.
435 2007-07-12 Herbert Xu <herbert@gondor.apana.org.au>
439 2007-05-12 Herbert Xu <herbert@gondor.apana.org.au>
441 * Fix redirect restore on closed file descriptors.
442 * Size optimisations in redir.c.
444 2007-05-06 Herbert Xu <herbert@gondor.apana.org.au>
446 * Removed unnecessary inclusion of redir.h from parser.c.
447 * Invoke sh_error on error in copyfd.
448 * Use dup2 instead of copyfd in evalbackcmd.
449 * Replace copyfd by savefd and dup2.
450 * Removed redundant CLOEXEC calls.
452 2007-05-05 Herbert Xu <herbert@gondor.apana.org.au>
454 * Fixed typo in parser.h comment.
456 2007-04-28 Dan Nicholson <dbn.lists@gmail.com>
458 * Set LC_COLLATE for sort in mkbuiltin.
460 2006-10-22 Gerrit Pape <pape@smarden.org>
462 * Fixed command -v segmentation fault.
464 2006-10-13 Alexey Gladkov <legion@altlinux.org>
466 * Check return code for getgroups and fwrite.
468 2006-10-04 Herbert Xu <herbert@gondor.apana.org.au>
470 * Fixed inverted char class matching.
472 2006-05-23 Alexey Gladkov <legion@altlinux.org>
474 * Added --with-libedit option to configure.
476 2006-03-29 Herbert Xu <herbert@gondor.apana.org.au>
478 * Removed useless parsebackquote flag.
479 * Use alloca to get rid of setjmp in parse.c.
480 * Only use signed char for syntax arrays.
482 2006-01-12 Herbert Xu <herbert@gondor.apana.org.au>
484 * Fixed eval exit status with empty arguments.
486 2005-11-26 Herbert Xu <herbert@gondor.apana.org.au>
490 2005-11-14 Herbert Xu <herbert@gondor.apana.org.au>
492 * Fix \c spillage across echo commands.
494 2005-11-13 Herbert Xu <herbert@gondor.apana.org.au>
496 * Remove unnecessary truncation in _STPUTC.
497 * Always call conv_escape_str in echocmd.
499 2005-11-04 Herbert Xu <herbert@gondor.apana.org.au>
501 * Use mktemp if tempfile is not available.
503 2005-10-30 Herbert Xu <herbert@gondor.apana.org.au>
505 * Fixed support for disabling job control.
507 2005-10-29 Herbert Xu <herbert@gondor.apana.org.au>
509 * Updated BSD licence to 3-clause version per NetBSD.
511 * Removed CVS IDs and inclusion of sys/cdefs.h.
512 * Removed use of __P from error.h.
513 * Use bsd_signal if it exists and signal does not.
514 * Stop using sysexits.h in commandcmd.
515 * Use stat if stat64 does not exist.
516 * Added default implementation of bsearch.
517 * Added getpwhome as a wrapper for getpwnam.
518 * Fixed gcc 4.0 compilation problems.
519 * Added missing system.h inclusion for mempcpy.
520 * Added default implementation of strsignal.
521 * Added default implementation of killpg.
522 * Disable ulimit if there is no getrlimit.
523 * Disable histcmd completely when SMALL is defined.
524 * Added default definition for SSIZE_MAX.
525 * Removed standalone/csh support from printf.
526 * Added dummy strtod implementation.
527 * Removed standalone/csh support from test.
528 * Added dummy sysconf implementation.
529 * Include system.h for stpcpy in nodes.c.
530 * Added out-of-line ctypes functions for klibc.
531 * Fixed fallback stpcpy implementation.
533 2005-10-26 Herbert Xu <herbert@gondor.apana.org.au>
535 * Size optimisations in preadbuffer().
537 2005-10-01 Herbert Xu <herbert@gondor.apana.org.au>
539 * Skip NUL characters properly in input.c.
541 2005-03-28 Herbert Xu <herbert@gondor.apana.org.au>
543 * Removed some unnecessary inclusions of input.h.
544 * Removed unnecessary inclusion of main.h from eval.c.
545 * Removed unnecessary inclusion of eval.h from parser.c.
546 * Generalise setinputfile for use in read_profile/readcmdfile.
547 * Handle SKIPEVAL in read_profile by exiting.
548 * Let evaltree handle traps from cmdloop.
549 * Reset evalskip after minusc is executed.
550 * Stop executing traps once SKIPEVAL is seen.
551 * Only handle each signal once in dotrap.
553 2005-03-25 Gerrit Pape <pape@smarden.org>
555 * Add trailing equal sign in setvar for variables set to null.
557 2005-03-25 Herbert Xu <herbert@gondor.apana.org.au>
559 * Cleaned up src/Makefile.am.
560 * Get rid of duplicate -g -O2 in CFLAGS.
561 * Eliminate first null termination in setvar.
562 * Turn evalskip into a bit field.
564 2005-03-25 Gilles Chanteperdrix <gilles.chanteperdrix@laposte.net>
566 * Fixed support for cross-compilation.
568 2005-03-03 Herbert Xu <herbert@gondor.apana.org.au>
571 * Removed redundant setstackmark from dotcmd.
572 * Do not clobber exit status in dotcmd.
574 2005-03-02 Herbert Xu <herbert@gondor.apana.org.au>
576 * Renamed symbols to avoid conflict with libc.
577 * Optimisations in bltin/test.c.
579 2005-02-28 Herbert Xu <herbert@gondor.apana.org.au>
581 * Replaced EXEVAL with SKIPEVAL.
582 * Update funcnest atomically.
583 * Only set skipcount for break and continue.
584 * Removed expcmd built-in.
585 * Normalise input in likely/unlikely macros.
587 2005-02-28 A Costa <agcosta@gis.net>
589 * Corrected that/than typo in manual page.
591 2005-02-25 A Costa <agcosta@gis.net>
593 * Corrected grammar in manual page.
595 2005-02-25 Herbert Xu <herbert@gondor.apana.org.au>
597 * Changed boolean rootshell into shlvl counter.
598 * Catch set -e exits within built-in commands.
599 * Size optimisations with setjmp in main().
600 * Only reread exitstatus on EXEXIT in exitshell.
601 * Eliminated global exerrno.
603 2005-01-31 Gerrit Pape <pape@smarden.org>
606 * Corrected manual entry about ENV and non-interactive shells.
608 2004-11-24 Gerrit Pape <pape@smarden.org>
610 * Spell behaviour consistently in manual page.
612 2004-11-23 A Costa <agcosta@gis.net>
614 * Fixed spelling errors in manual page.
616 2004-08-21 Herbert Xu <herbert@gondor.apana.org.au>
618 * Size optimisations around varvalue() in src/expand.c.
619 * Fixed signed char promotion in src/expand.c.
621 2004-08-18 Herbert Xu <herbert@gondor.apana.org.au>
623 * Fixed $@ expansion when leading argument is null in src/expand.c.
625 2004-08-07 Herbert Xu <herbert@gondor.apana.org.au>
627 * Allow negative pid argument to kill(1) in src/jobs.c.
629 2004-08-04 Herbert Xu <herbert@gondor.apana.org.au>
631 * Fixed cd - when OLDPWD is unset in src/cd.c.
633 2004-07-09 Herbert Xu <herbert@gondor.apana.org.au>
635 * Include system.h (Gerrit Pape):
640 2004-07-03 Herbert Xu <herbert@gondor.apana.org.au>
643 * Use automake and autoconf.
644 * Include stdlib.h for exit(3) in src/mksyntax.c.
646 2004-06-29 Herbert Xu <herbert@gondor.apana.org.au>
648 * Added sigclearmask.
649 * Removed hack for _setjmp/_longjmp.
650 * Added default implementations of mempcpy/stpcpy/strchrnul.
651 * Use strtoll/strtoull if strtoimax/strtoumax are unavailable.
652 * Removed sh.1 to dash.1.
654 2004-05-28 Herbert Xu <herbert@gondor.apana.org.au>
656 * Fixed vstype trim operator ordering in cmdputs.
657 * Fixed quote for CTLENDVAR in cmdputs.
658 * Fixed VSLENGTH crash in cmdputs.
659 * Turned vstype back into a 2-d array of chars.
660 * Added POSIX character class support in pmatch.
662 For older ChangeLogs see ChangeLog.O.