Commit graph

20 commits

Author SHA1 Message Date
nia
30e3ce2b11 shells: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
2021-10-26 11:18:36 +00:00
nia
a7811ee9af shells: Remove SHA1 hashes for distfiles 2021-10-07 14:56:09 +00:00
schmonz
c32a19dddf Check a little harder for stat64. Fixes the build on my M1 with
Big Sur 11.4.
2021-06-22 15:16:59 +00:00
nia
6885fecc06 dash: update to 0.5.11.4. enable libedit support.
Andrej Shadura (1):
      builtin: Default to mktemp, not tempfile

Antonio Ospite (6):
      eval: make traps work when "set -e" is enabled
      shell: Update configure.ac with suggestions from autoupdate
      shell: Enable automake silent rules
      eval: Silence compiler warning about missing parentheses
      shell: Fix clang warnings about "string plus integer"
      output: Fix clang warnings about GNU old-style field designator

Denys Vlasenko (3):
      jobs: Rename DOWAIT_NORMAL to DOWAIT_NONBLOCK
      var: Remove poplocalvars() always-zero argument, make it static
      expand: Remove unused expandmeta() flag parameter

Fangrui Song (1):
      shell: delete AC_PROG_YACC

Gerrit Pape (2):
      eval: Report I/O error on stdout
      main: Print \n upon EOF (CTRL-D) when run interactively

Herbert Xu (57):
      exec: Return 126 on most errors in shellexec
      main: Only set savestatus in exitcmd
      mkinit: Split reset into exitreset and reset
      jobs: Only clear gotsigchld when waiting for everything
      parser: Save/restore here-documents in command substitution
      var: Set IFS to fixed value at start time
      output: Fix fmtstr return value
      jobs: Replace some uses of fmtstr with stpcpy/stpncpy
      memalloc: Add growstackto helper
      exec: Do not allocate stack string in padvance
      builtin: Mark more regular built-ins
      exec: Stricter pathopt parsing
      exec: Never rehash regular built-ins
      eval: Add assignment built-in support again
      eval: Fail immediately with redirections errors for simple command
      eval: Replace with listsetvar with mklocal/setvareq
      eval: Add vfork support
      builtin: Use test_access from NetBSD when faccessat is unavailable
      expand: Use HOME in tilde expansion when it is empty
      expand: Merge syntax/quotes in memtodest with flags
      expand: Fix skipping of command substitution when trimming in evalvar
      expand: Do not reprocess data when expanding words
      eval: Always set localvar_stop
      memalloc: Avoid looping in growstackto
      expand: Ensure result is escaped in cvtnum
      expand: Fix multiple issues with EXP_DISCARD in evalvar
      eval: Use the correct expansion mode for fd redirection
      expand: Eat closing brace for length parameter expansion
      parser: Do not push token back before parseheredoc
      eval: Use sh_warnx instead of warnx
      system: Disable glibc warning on sigsetmask
      eval: avoid leaking memory associated with redirections
      eval: Only restore exit status on exit/return
      redir: Handle nested exec within REALLY_CLOSED redirection
      options: Do not set commandname in procargs
      expand: Fix double-decrement in argstr
      eval: Reset handler when entering a subshell
      parser: Fix old-style command substitution here-document crash
      parser: Only accept single-digit parameter expansion outside of braces
      redir: Clear saved redirections in subshell
      builtin: Fix seconds part of times(1)
      jobs: Fix infinite loop in waitproc
      parser: Fix handling of empty aliases
      parser: Catch errors in expandstr
      parser: Fix alias expansion after heredoc or newlines
      shell: Always use explicit large file API
      parser: Save and restore heredoclist in expandstr
      parser: Fix double-backslash nl in old-style command sub
      Release 0.5.11.
      jobs: Fix waitcmd busy loop
      Release 0.5.11.1.
      shell: Group readdir64/dirent64 with open64
      Release 0.5.11.2.
      jobs: Only block in waitcmd on first run
      Release 0.5.11.3.
      eval: Do not cache value of eflag in evaltree
      Release 0.5.11.4.

Jeroen Roovers (1):
      input: Fix compiling against libedit with -fno-common

Martijn Dekker (1):
      shell: update .gitignore

Martin Michlmayr (1):
      shell: Fix typos

Michael Greenberg (1):
      shell: mktokens relative TMPDIR

Nikolai Merinov (1):
      expand: Fix trailing newlines processing in backquote expanding

Peter Korsgaard (1):
      shell: Don't include config.h for native helpers

esr@thyrsus.com (1):
      man: Problems in dash.1, sh.1, sh.distrib.1
2021-06-12 08:48:03 +00:00
adam
d489a58b0f dash: updated to 0.5.10.2
0.5.10.2:
Bug fixes.
2018-06-01 07:19:01 +00:00
adam
fb6913fba5 dash: updated to 0.5.10.1
0.5.10.1:
jobs - Do not block when waiting on SIGCHLD

0.5.10:
eval: Variable assignments on functions are no longer persistent
parser: Fix parameter expansion inside inner double quotes
parser: Fix parsing of ${}
man: correct typos, iff -> if
expand: Do not quote backslashes in unquoted parameter expansion
shell: Add subdir-objects to AM_INIT_AUTOMAKE
eval: Restore input files in evalcommand
eval: Reap zombies after built-in commands and functions
redir: Fix typo in noclobber code
expand: Fix glibc glob(3) support
expand: Fix buffer overflow in expandmeta
builtin: Move echo space/nl handling into print_escape_str
builtin: Fix echo performance regression
expand: Fix ghost fields with unquoted $@/$*
parser: Allow newlines within parameter substitution
expand: Fix bugs with words connected to the right of $@
Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"
parser: Fix backquote support in here-document EOF mark
shell: provide .gitignore
parser: Fix single-quoted patterns in here-documents
parser: Add syntax stack for recursive parsing
parser: use pgetc_eatbnl() in more places
builtin: Greater resolution in test -nt / test -ot
2018-05-17 09:52:43 +00:00
jperkin
d9334ef5c9 Check for stat64 declaration. Fixes SunOS 64-bit build. 2017-05-15 14:52:44 +00:00
ryoon
cc3aac16dc Update to 0.5.9.1
Changelog:
Not available
2017-02-26 01:24:59 +00:00
agc
168a7e5915 Add SHA512 digests for distfiles for shells category
Existing SHA1 digests verified, all found to be the same on the
machine holding the existing distfiles (morden).  Existing SHA1
digests retained for now as an audit trail.
2015-11-02 23:00:34 +00:00
ryoon
43fb5c8f65 Update to 0.5.8
Changelog:
2014-09-26  Herbert Xu <herbert@gondor.apana.org.au>

	* Small optimisation of command -pv change.
	* Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin.
	* Change "characters" for printf precision to "bytes".
	* Release 0.5.8.

2014-09-26  Jonathan Nieder <jrnieder@gmail.com>

	* Clarify "trap '' signals" syntax in manual page.

2014-09-26  Adam Buchbinder <adam.buchbinder@gmail.com>

	* Clarify that 0 and EXIT are both acceptable for exit traps.

2014-09-26  Harald van Dijk <harald@gigawatt.nl>

	* command: allow combining -p with -v.
	* getjob: Fix off-by-one error for multiple of four job numbers

2013-08-23  Herbert Xu <herbert@gondor.apana.org.au>

	* Propagate EXP_QPAT in subevalvar.
	* Initialise OPTIND after importing environment.
	* Fixed argument parsing crash in test.

2013-03-12  Peter Rosin <peda@lysator.liu.se>

	* Add newline when tracing in poplocalvars.

2013-01-10  Jérémie Courrèges-Anglas <jca+dash@wxcvbn.org>

	* Markup fixes in manual for mandoc 1.12.1.

2012-12-03  Harald van Dijk <harald@gigawatt.nl>

	* Use PRIdMAX instead of %j in printf.

2012-07-20  Kimo Rosenbaum <kimor79@yahoo.com>

	* Fix typo for wait in manual.

2012-06-09  Christoph Mathys <eraserix@gmail.com>

	* Add support for ulimit -r.

2012-03-11  Jim Meyering  <meyering@redhat.com>

	* Avoid overflow for very long variable name.
	$ perl -le 'print "v"x(2**31+1) ."=1"' | dash

2012-02-25  Herbert Xu <herbert@gondor.apana.org.au>

	* Sanitise environment variable names on entry.

2011-08-17  David S. Miller <davem@davemloft.net>

	* Allow building without LINEO support.
	* Add top-level autogen.sh.

2011-07-26  Harald van Dijk <harald@gigawatt.nl>

	* Avoid imaxdiv when only one of the results is wanted.

2010-07-09  maximilian attems <max@stro.at>

	* Fix klibc DEBUG compilation.

2011-07-09  Herbert Xu <herbert@gondor.apana.org.au>

	* Merge SKIPFUNC/SKIPFILE and only clear SKIPFUNC when leaving dotcmd.
2015-06-14 11:04:24 +00:00
cheusov
41b938452a Update HOMEPAGE 2013-01-06 16:43:26 +00:00
cheusov
bdb01096aa Fix for build failure on SunOS 2013-01-06 16:19:07 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
cheusov
263e634c77 Update to 0.5.7. Changes since 0.5.5.1:
* Optimize dash -c "command" to avoid a fork.
        * Eliminate unnecessary promotion in echocmd.

        * Avoid using undefined handler.

        * Avoid gcc warning: variable 'oldstackp' set but not used.
        * Avoid clang warning about dead store to "size".

        * Make outc an inline function.

        * Remove spurious space in descriptions of PS1, PS2, PS4.

        * Remove unused EV_BACKCMD flag.

        * Fix clobbering of checkkwd.

        * Free IFS state after here document expansion.
        * Use va_copy when reusing a va_list.

        * Let funcnode refer to a function definition, not its first
        * command.
        * Improve LINENO support.

        * Port to Solaris.

        * Fix backslash handling in read(1).

        * Dotcmd should exit with zero when doing nothing.

        * Fix CTLESC clobbering by read(1).

        * Port to AIX.

        * Replace GPL noclobberopen code with the FreeBSD version.
        * Do not split the result of tilde expansion.

        * Mark status as volatile in exitshell.

        * Use EXEXIT in place of EXEXEC.
        * Stop documenting EXSHELLPROC.

        * Use exit status 127 when the script to run does not exist.

        * Document optional open parenthesis for case patterns.

        * Fixed trap/return regression due to SKIPEVAL removal.
        * Allow the originator of EXERROR to set the exit status.
        * Free IFS state in evalbackcmd.

        * Fix ifsfirst/ifslastp leak in casematch.

        * Fix EXEXEC status clobbering.

        * Fix ifsfirst/ifslastp leak.
        * Fix trailing field bug in read(1).

        * Debug compile fix.

        * Fix varinit ordering that broke fc.

        * Check exit for eval NSUBSHELL.

        * Fix loss of variables when hash collides.
        * Removed dead code for eval NPIPE.

        * Don't clear eflag in evalbackcmd.

        * Continue after EINTR in read(1) with no pending signals.

        * Force fork if any trap is set, not just on EXIT.
        * Fix corruption of redirections with byte 0x81.

        * Fix poplocalvar on abnormal exit from function.
        * Do not poplocalvars prematurely on regular utilities.
        * Move null redirect checks into caller.
        * Fix popredir on abnormal exit from built-in.
        * Fix wait regression where it does not wait for all jobs.

        * Replace cmdenviron with localvars.

        * Fix poplocalvar leak.
        * Move unsetvar functionality into setvareq.

        * Add localvars nesting, local now fails outside functions.

        * Fix command -- crash.

        * Fix for job control off warning.

        * Use faccessat if available.

        * Make trap signal name/number errors non-fatal.
        * Release 0.5.6.

        * Use TMPDIR in mkbuiltins.

        * Fix logical or result value.

        * Fix binary operator parsing.

        * Fix off-by-one recordregion in readcmd.

        don't read-uninitialized for \177 in a here-doc
        A DEL (0177, dec 127) byte in a here-document would cause dash to
        access uninitialized memory at the end of one of the syntax.c
        tables,
        since those tables are sized to accommodate a maximum index of
        BASESYNTAX + 126.  Make the generated tables one byte larger.
        printf ':<<\\E\n\200y\nE'|./dash
        * src/mksyntax.c (filltable): Use 258, not 257 as the size,
        so that BASESYNTAX(=130) + 127 is a valid index.
        (print): Likewise.
        Don't emit explicit array dimension in declaration.

        * Avoid compiler warnings on isdigit.

        * Add another missing LC_COLLATE to mkbuiltins.

        * Fix NUL termination in readcmd.
        * Lookup PWD after going through CDPATH.

        * Pass EV_TESTED into evalcmd.
        * Revert SKIPEVAL into EXEXIT.

        * Add preliminary LINENO support.

        * Honor tab as IFS whitespace when splitting fields in readcmd.

        * Do not truncate file for FROMTO redirection.

        * Fix quoted pattern patch breakage.

        * Fix incorrect savefd conversions.

        * Fix dowait signal race.
        * Remove EXSIG.
        * Do not close stderr when /dev/tty fails to open.
        * Allow newlines after var name in for statements.
        * Use CHKNL to parse case statements.

        * Update manual page to differentiate dash from ash.
2012-05-30 20:33:26 +00:00
cheusov
c11e216de0 take maintainership 2012-04-26 16:04:38 +00:00
joerg
6bae857d04 Fix mdoc syntax. Bump revision. 2012-01-24 22:21:43 +00:00
jmmv
9a786011ff Bump PKGREVISION to reflect the recent change in pkginstall/shells to use
etcutils to update /etc/shells.
2010-05-07 12:02:43 +00:00
asau
9cdc0ff7e5 Reset MAINTAINER per request in PR pkg/42272 2009-11-05 21:56:59 +00:00
wiz
2be4ec3f1f Add dash to /etc/shells. From PR 41949 by Tim Larson. 2009-08-27 17:03:58 +00:00
rillig
f263fbd5f9 Imported dash from pkgsrc-wip.
Debian Almquist shell.  A small POSIX-compliant shell that is faster than bash.

Packaged by christtrekker@users.sourceforge.net.
2009-07-26 21:27:49 +00:00