[BUILTIN] Dotcmd should exit with zero when doing nothing
[dash.git] / ChangeLog
blob8a832bb7e9313063e818f7d819f66ef78aa240c4
1 2011-03-10  Jonathan Nieder <jrnieder@gmail.com>
3         * Dotcmd should exit with zero when doing nothing.
5 2011-03-10  Herbert Xu <herbert@gondor.apana.org.au>
7         * Fix CTLESC clobbering by read(1).
9 2011-03-10  Brian Koropoff <bkoropoff@gmail.com>
11         * Port to AIX.
13 2011-03-10  Jilles Tjoelker <jilles@stack.nl>
15         * Replace GPL noclobberopen code with the FreeBSD version.
16         * Do not split the result of tilde expansion.
18 2010-11-28  Maciej Żenczykowski <zenczykowski@gmail.com>
20         * Mark status as volatile in exitshell.
22 2010-11-28  Jonathan Nieder <jrnieder@gmail.com>
24         * Use EXEXIT in place of EXEXEC.
25         * Stop documenting EXSHELLPROC.
27 2010-11-28  Gerrit Pape <pape@smarden.org>
29         * Use exit status 127 when the script to run does not exist.
31 2010-11-28  Philipp Weis <pweis@pweis.com>
33         * Document optional open parenthesis for case patterns.
35 2010-11-28  Herbert Xu <herbert@gondor.apana.org.au>
37         * Fixed trap/return regression due to SKIPEVAL removal.
38         * Allow the originator of EXERROR to set the exit status.
39         * Free IFS state in evalbackcmd.
41 2010-10-18  Herbert Xu <herbert@gondor.apana.org.au>
43         * Fix ifsfirst/ifslastp leak in casematch.
45 2010-10-07  Herbert Xu <herbert@gondor.apana.org.au>
47         * Fix EXEXEC status clobbering.
49 2010-09-08  Herbert Xu <herbert@gondor.apana.org.au>
51         * Fix ifsfirst/ifslastp leak.
52         * Fix trailing field bug in read(1).
54 2010-09-08  maximilian attems <max@stro.at>
56         * Debug compile fix.
58 2010-09-08  Jilles Tjoelker <jilles@stack.nl>
60         * Fix varinit ordering that broke fc.
62 2010-07-06  Gerrit Pape <pape@smarden.org>
64         * Check exit for eval NSUBSHELL.
66 2010-07-06  Herbert Xu <herbert@gondor.apana.org.au>
68         * Fix loss of variables when hash collides.
69         * Removed dead code for eval NPIPE.
71 2010-06-28  Gerrit Pape <pape@smarden.org>
73         * Don't clear eflag in evalbackcmd.
75 2010-05-29  Herbert Xu <herbert@gondor.apana.org.au>
77         * Continue after EINTR in read(1) with no pending signals.
79 2010-05-27  Jilles Tjoelker <jilles@stack.nl>
81         * Force fork if any trap is set, not just on EXIT.
82         * Fix corruption of redirections with byte 0x81.
84 2010-05-27  Herbert Xu <herbert@gondor.apana.org.au>
86         * Fix poplocalvar on abnormal exit from function.
87         * Do not poplocalvars prematurely on regular utilities.
88         * Move null redirect checks into caller.
89         * Fix popredir on abnormal exit from built-in.
90         * Fix wait regression where it does not wait for all jobs.
92 2010-05-26  Herbert Xu <herbert@gondor.apana.org.au>
94         * Replace cmdenviron with localvars.
96 2010-05-25  Herbert Xu <herbert@gondor.apana.org.au>
98         * Fix poplocalvar leak.
99         * Move unsetvar functionality into setvareq.
101 2010-05-24  Herbert Xu <herbert@gondor.apana.org.au>
103         * Add localvars nesting, local now fails outside functions.
105 2010-05-03  Gerrit Pape <pape@smarden.org>
107         * Fix command -- crash.
109 2010-04-15  H. Peter Anvin <hpa@zytor.com>
111         * Fix for job control off warning.
113 2010-04-02  Herbert Xu <herbert@gondor.apana.org.au>
115         * Use faccessat if available.
117 2010-04-02  Herbert Xu <herbert@gondor.apana.org.au>
119         * Make trap signal name/number errors non-fatal.
120         * Release 0.5.6.
122 2010-04-02  maximilian attems <max@stro.at>
124         * Use TMPDIR in mkbuiltins.
126 2010-03-10  Jilles Tjoelker <jilles@stack.nl>
128         * Fix logical or result value.
130 2010-03-09  Herbert Xu <herbert@gondor.apana.org.au>
132         * Fix binary operator parsing.
134 2009-11-26  Herbert Xu <herbert@gondor.apana.org.au>
136         * Fix off-by-one recordregion in readcmd.
138 2009-09-28  Jim Meyering  <meyering@redhat.com>
140         don't read-uninitialized for \177 in a here-doc
141         A DEL (0177, dec 127) byte in a here-document would cause dash to
142         access uninitialized memory at the end of one of the syntax.c tables,
143         since those tables are sized to accommodate a maximum index of
144         BASESYNTAX + 126.  Make the generated tables one byte larger.
145         printf ':<<\\E\n\200y\nE'|./dash
146         * src/mksyntax.c (filltable): Use 258, not 257 as the size,
147         so that BASESYNTAX(=130) + 127 is a valid index.
148         (print): Likewise.
149         Don't emit explicit array dimension in declaration.
151 2009-08-31  Eric Blake <ebb9@byu.net>
153         * Avoid compiler warnings on isdigit.
155 2009-08-31  Matthew Burgess <matthew@linuxfromscratch.org>
157         * Add another missing LC_COLLATE to mkbuiltins.
159 2009-08-31  Herbert Xu <herbert@gondor.apana.org.au>
161         * Fix NUL termination in readcmd.
162         * Lookup PWD after going through CDPATH.
164 2009-08-11  Herbert Xu <herbert@gondor.apana.org.au>
166         * Pass EV_TESTED into evalcmd.
167         * Revert SKIPEVAL into EXEXIT.
169 2009-08-11  Rocky Bernstein <rocky.bernstein@gmail.com>
171         * Add preliminary LINENO support.
173 2009-08-11  Stefan Potyra <stefan.potyra@informatik.uni-erlangen.de>
175         * Honor tab as IFS whitespace when splitting fields in readcmd.
177 2009-06-30  Herbert Xu <herbert@gondor.apana.org.au>
179         * Do not truncate file for FROMTO redirection.
181 2009-06-27  Herbert Xu <herbert@gondor.apana.org.au>
183         * Fix quoted pattern patch breakage.
185 2009-05-23  Herbert Xu <herbert@gondor.apana.org.au>
187         * Fix incorrect savefd conversions.
189 2009-02-22  Herbert Xu <herbert@gondor.apana.org.au>
191         * Fix dowait signal race.
192         * Remove EXSIG.
193         * Do not close stderr when /dev/tty fails to open.
194         * Allow newlines after var name in for statements.
195         * Use CHKNL to parse case statements.
197 2009-02-22  Gerrit Pape <pape@smarden.org>
199         * Update manual page to differentiate dash from ash.
201 2009-01-14  Herbert Xu <herbert@gondor.apana.org.au>
203         * Add arith_yacc.h to dash_SOURCES.
204         * Release 0.5.5.1.
206 2009-01-13  Herbert Xu <herbert@gondor.apana.org.au>
208         * Release 0.5.5.
210 2009-01-13  Mark Mentovai <mmentovai@gmail.com>
212         * Fixed build on OS X.
214 2008-12-26  Aleksey Cheusov <vle@gmx.net>
216         * Fixed build on NetBSD.
218 2008-10-17  Herbert Xu <herbert@gondor.apana.org.au>
220         * Removed obsolete for loop syntax in manual.
222 2008-08-05  Herbert Xu <herbert@gondor.apana.org.au>
224         * Fixed getcwd build error for the non-glibc case.
226 2008-06-13  Gerrit Pape <pape@smarden.org>
228         * Added missing right parenthesis in manual page.
230 2008-06-13  Herbert Xu <herbert@gondor.apana.org.au>
232         * Fixed 3,4-argument cases for test per POSIX.
233         * Made aexpr/oexpr non-recursive.
234         * Made t_lex reentrant.
235         * Made setinputfd static.
236         * Expand ENV before using it.
237         * Added support for -l.
239 2008-05-19  Herbert Xu <herbert@gondor.apana.org.au>
241         * Fixed non-leading slash treatment in expmeta.
243 2008-05-07  Gerrit Pape <pape@smarden.org>
245         * Fixed lexical error in arithmetic expansion of & and |.
247 2008-05-03  Dan McGee <dpmcgee@gmail.com>
249         * Fixed klibc/klcc build problems.
250         * Added gitignore.
252 2008-05-03  Herbert Xu <herbert@gondor.apana.org.au>
254         * Fixed _PATH_BSHELL warning.
255         * Test __GLIBC__ instead of _GNU_SOURCE.
256         * Restored warning when getcwd fails.
257         * Set default exvwarning2 arg0 for errors during early initialisation.
258         * Use uninitialized_var to silence bogus warnings.
260 2008-05-02  Herbert Xu <herbert@gondor.apana.org.au>
262         * Restored non-glibc getcwd support.
264 2008-03-07  Larry Doolittle <ldoolitt@recycle.lbl.gov>
266         * Fix cmdtxt crash on if statements.
268 2008-01-01  Herbert Xu <herbert@gondor.apana.org.au>
270         * Fix slash treatment in expmeta.
272 2007-12-27  Herbert Xu <herbert@gondor.apana.org.au>
274         * Add FAKEEOFMARK for expandstr.
275         * Do not show prompts in expandstr.
277 2007-12-23  Gerrit Pape <pape@smarden.org>
279         * If imaxdiv() isn't available, use / and % operators.
281 2007-12-23  Richard M Kreuter <kreuter@progn.net>
283         * Add set +o support.
285 2007-12-23  Steve Langasek <steve.langasek@canonical.com>
287         * Fixed bad pointer arithmetic in evalcommand.
289 2007-11-11  Herbert Xu <herbert@gondor.apana.org.au>
291         * Removed noexpand/length check on eofmark.
292         * Removed herefd hack.
293         * Expand here-documents in the current shell environment.
295 2007-10-20  Herbert Xu <herbert@gondor.apana.org.au>
297         * Added configure --enable-glob and --enable-fnmatch options.
298         * Fix here-doc corruption.
300 2007-10-17  Herbert Xu <herbert@gondor.apana.org.au>
302         * Replace shared illnum message by badnum function.
304 2007-10-17  Oleg Verych <olecom@flower.upol.cz>
306         * Disallow completely blank strings in non-arithmetic context.
308 2007-10-15  Herbert Xu <herbert@gondor.apana.org.au>
310         * Fixed execing of scripts with no hash-bang.
312 2007-10-11  Herbert Xu <herbert@gondor.apana.org.au>
314         * Add assignment support in arithmetic expansions.
315         * Size optimisations in arithmetic lexer.
316         * Add likely flags in expari.
317         * Use setvarint to set OPTIND.
319 2007-10-08  Herbert Xu <herbert@gondor.apana.org.au>
321         * Report substition errors at expansion time.
323 2007-10-06  Herbert Xu <herbert@gondor.apana.org.au>
325         * Add pushstackmark.
326         * Treat OPTIND=0 in the same way as OPTIND=1.
327         * Remove setvarsafe.
328         * Use intmax_t arithmetic in test.
330 2007-10-05  Herbert Xu <herbert@gondor.apana.org.au>
332         * Made grabstackblock an inline wrapper for stalloc.
334 2007-10-04  Herbert Xu <herbert@gondor.apana.org.au>
336         * Fix parsing of ${##1}.
337         * Size optimisations in parameter expansion parser.
339 2007-10-04  Alexey Gladkov <legion@altlinux.org>
341         * Add --enable-static option to configure.
343 2007-09-26  Herbert Xu <herbert@gondor.apana.org.au>
345         * Recognise here-doc delimiters terminated by EOF.
347 2007-09-26  Roy Marples <uberlord@gentoo.org>
349         * Refresh stack pointers after makestrspace in _rmescapes.
351 2007-09-25  Gerrit Pape <pape@smarden.org>
353         * Clarify description of -nt, -ot options to test builtin.
354         * Clarify syntax of the for command.
356 2007-09-25  Herbert Xu <herbert@gondor.apana.org.au>
358         * Do not expand tilde in parameter expansion within quotes.
359         * Move parse-time quote flag detection to run-time.
361 2007-09-24  Herbert Xu <herbert@gondor.apana.org.au>
363         * Do not quote back slashes in parameter expansions outside quotes.
364         * Perform tilde expansion in all parameter expansion words.
365         * Remove superfluous arinest test in CENDQUOTE.
366         * Remove superfluous arinest test for dqvarnest.
367         * Remove superfluous dblquote settings when ending arith.
368         * Remove arithmetic expansion collapsing at parse time.
370 2007-09-22  Oleg Verych <olecom@flower.upol.cz>
372         * White space fixes for test(1).
373         * Use direct comparison instead of strcmp in test(1).
375 2007-09-22  Herbert Xu <herbert@gondor.apana.org.au>
377         * Move flushall to the point just before _exit.
379 2007-09-21  Denis Vlasenko <vda.linux@googlemail.com>
381         * Restore foreground process group on exit.
383 2007-07-12  Herbert Xu <herbert@gondor.apana.org.au>
385         * Release 0.5.4.
387 2007-05-12  Herbert Xu <herbert@gondor.apana.org.au>
389         * Fix redirect restore on closed file descriptors.
390         * Size optimisations in redir.c.
392 2007-05-06  Herbert Xu <herbert@gondor.apana.org.au>
394         * Removed unnecessary inclusion of redir.h from parser.c.
395         * Invoke sh_error on error in copyfd.
396         * Use dup2 instead of copyfd in evalbackcmd.
397         * Replace copyfd by savefd and dup2.
398         * Removed redundant CLOEXEC calls.
400 2007-05-05  Herbert Xu <herbert@gondor.apana.org.au>
402         * Fixed typo in parser.h comment.
404 2007-04-28  Dan Nicholson <dbn.lists@gmail.com>
406         * Set LC_COLLATE for sort in mkbuiltin.
408 2006-10-22  Gerrit Pape <pape@smarden.org>
410         * Fixed command -v segmentation fault.
412 2006-10-13  Alexey Gladkov <legion@altlinux.org>
414         * Check return code for getgroups and fwrite.
416 2006-10-04  Herbert Xu <herbert@gondor.apana.org.au>
418         * Fixed inverted char class matching.
420 2006-05-23  Alexey Gladkov <legion@altlinux.org>
422         * Added --with-libedit option to configure.
424 2006-03-29  Herbert Xu <herbert@gondor.apana.org.au>
426         * Removed useless parsebackquote flag.
427         * Use alloca to get rid of setjmp in parse.c.
428         * Only use signed char for syntax arrays.
430 2006-01-12  Herbert Xu <herbert@gondor.apana.org.au>
432         * Fixed eval exit status with empty arguments.
434 2005-11-26  Herbert Xu <herbert@gondor.apana.org.au>
436         * Release 0.5.3.
438 2005-11-14  Herbert Xu <herbert@gondor.apana.org.au>
440         * Fix \c spillage across echo commands.
442 2005-11-13  Herbert Xu <herbert@gondor.apana.org.au>
444         * Remove unnecessary truncation in _STPUTC.
445         * Always call conv_escape_str in echocmd.
447 2005-11-04  Herbert Xu <herbert@gondor.apana.org.au>
449         * Use mktemp if tempfile is not available.
451 2005-10-30  Herbert Xu <herbert@gondor.apana.org.au>
453         * Fixed support for disabling job control.
455 2005-10-29  Herbert Xu <herbert@gondor.apana.org.au>
457         * Updated BSD licence to 3-clause version per NetBSD.
458         * Updated copyright.
459         * Removed CVS IDs and inclusion of sys/cdefs.h.
460         * Removed use of __P from error.h.
461         * Use bsd_signal if it exists and signal does not.
462         * Stop using sysexits.h in commandcmd.
463         * Use stat if stat64 does not exist.
464         * Added default implementation of bsearch.
465         * Added getpwhome as a wrapper for getpwnam.
466         * Fixed gcc 4.0 compilation problems.
467         * Added missing system.h inclusion for mempcpy.
468         * Added default implementation of strsignal.
469         * Added default implementation of killpg.
470         * Disable ulimit if there is no getrlimit.
471         * Disable histcmd completely when SMALL is defined.
472         * Added default definition for SSIZE_MAX.
473         * Removed standalone/csh support from printf.
474         * Added dummy strtod implementation.
475         * Removed standalone/csh support from test.
476         * Added dummy sysconf implementation.
477         * Include system.h for stpcpy in nodes.c.
478         * Added out-of-line ctypes functions for klibc.
479         * Fixed fallback stpcpy implementation.
481 2005-10-26  Herbert Xu <herbert@gondor.apana.org.au>
483         * Size optimisations in preadbuffer().
485 2005-10-01  Herbert Xu <herbert@gondor.apana.org.au>
487         * Skip NUL characters properly in input.c.
489 2005-03-28  Herbert Xu <herbert@gondor.apana.org.au>
491         * Removed some unnecessary inclusions of input.h.
492         * Removed unnecessary inclusion of main.h from eval.c.
493         * Removed unnecessary inclusion of eval.h from parser.c.
494         * Generalise setinputfile for use in read_profile/readcmdfile.
495         * Handle SKIPEVAL in read_profile by exiting.
496         * Let evaltree handle traps from cmdloop.
497         * Reset evalskip after minusc is executed.
498         * Stop executing traps once SKIPEVAL is seen.
499         * Only handle each signal once in dotrap.
501 2005-03-25  Gerrit Pape <pape@smarden.org>
503         * Add trailing equal sign in setvar for variables set to null.
505 2005-03-25  Herbert Xu <herbert@gondor.apana.org.au>
507         * Cleaned up src/Makefile.am.
508         * Get rid of duplicate -g -O2 in CFLAGS.
509         * Eliminate first null termination in setvar.
510         * Turn evalskip into a bit field.
512 2005-03-25  Gilles Chanteperdrix <gilles.chanteperdrix@laposte.net>
514         * Fixed support for cross-compilation.
516 2005-03-03  Herbert Xu <herbert@gondor.apana.org.au>
518         * Removed qflag.
519         * Removed redundant setstackmark from dotcmd.
520         * Do not clobber exit status in dotcmd.
522 2005-03-02  Herbert Xu <herbert@gondor.apana.org.au>
524         * Renamed symbols to avoid conflict with libc.
525         * Optimisations in bltin/test.c.
527 2005-02-28  Herbert Xu <herbert@gondor.apana.org.au>
529         * Replaced EXEVAL with SKIPEVAL.
530         * Update funcnest atomically.
531         * Only set skipcount for break and continue.
532         * Removed expcmd built-in.
533         * Normalise input in likely/unlikely macros.
535 2005-02-28  A Costa <agcosta@gis.net>
537         * Corrected that/than typo in manual page.
539 2005-02-25  A Costa <agcosta@gis.net>
541         * Corrected grammar in manual page.
543 2005-02-25  Herbert Xu <herbert@gondor.apana.org.au>
545         * Changed boolean rootshell into shlvl counter.
546         * Catch set -e exits within built-in commands.
547         * Size optimisations with setjmp in main().
548         * Only reread exitstatus on EXEXIT in exitshell.
549         * Eliminated global exerrno.
551 2005-01-31  Gerrit Pape <pape@smarden.org>
553         * Release 0.5.2.
554         * Corrected manual entry about ENV and non-interactive shells.
556 2004-11-24  Gerrit Pape <pape@smarden.org>
558         * Spell behaviour consistently in manual page.
560 2004-11-23  A Costa <agcosta@gis.net>
562         * Fixed spelling errors in manual page.
564 2004-08-21  Herbert Xu <herbert@gondor.apana.org.au>
566         * Size optimisations around varvalue() in src/expand.c.
567         * Fixed signed char promotion in src/expand.c.
569 2004-08-18  Herbert Xu <herbert@gondor.apana.org.au>
571         * Fixed $@ expansion when leading argument is null in src/expand.c.
573 2004-08-07  Herbert Xu <herbert@gondor.apana.org.au>
575         * Allow negative pid argument to kill(1) in src/jobs.c.
577 2004-08-04  Herbert Xu <herbert@gondor.apana.org.au>
579         * Fixed cd - when OLDPWD is unset in src/cd.c.
581 2004-07-09  Herbert Xu <herbert@gondor.apana.org.au>
583         * Include system.h (Gerrit Pape):
584           . src/mystring.c
585           . src/var.c
586           . src/bltin/printf.c
588 2004-07-03  Herbert Xu <herbert@gondor.apana.org.au>
590         * Release 0.5.1.
591         * Use automake and autoconf.
592         * Include stdlib.h for exit(3) in src/mksyntax.c.
594 2004-06-29  Herbert Xu <herbert@gondor.apana.org.au>
596         * Added sigclearmask.
597         * Removed hack for _setjmp/_longjmp.
598         * Added default implementations of mempcpy/stpcpy/strchrnul.
599         * Use strtoll/strtoull if strtoimax/strtoumax are unavailable.
600         * Removed sh.1 to dash.1.
602 2004-05-28  Herbert Xu <herbert@gondor.apana.org.au>
604         * Fixed vstype trim operator ordering in cmdputs.
605         * Fixed quote for CTLENDVAR in cmdputs.
606         * Fixed VSLENGTH crash in cmdputs.
607         * Turned vstype back into a 2-d array of chars.
608         * Added POSIX character class support in pmatch.
610 For older ChangeLogs see ChangeLog.O.
612 ChangeLog ends here