Commit graph

544 commits

Author SHA1 Message Date
joerg
ac24d53756 Maintainer/author update to mksh-R29f to fix a regression in the last
version. Some other small bugfixes and portability fixes are included
as well. From Thorsten Glaser.
2007-06-20 17:20:45 +00:00
joerg
d8a79343a1 Update to mksh-R29e. Fixes a number of display bugs, cursor positioning
bugs and issues shown by Coverity Prevent. From Thorsten Glaser.

Add DESTDIR support.
2007-05-23 11:02:32 +00:00
heinz
e20b55a52d The package supports installation to DESTDIR. 2007-05-12 16:18:55 +00:00
obache
b36465614d PKGNAME must be defined before include bsd.pkg.mk,
if not, in 'package' phase, PKGNAME==DISTNAME.

Remove WRKSRC definision, it equals to default value.
2007-04-25 13:26:42 +00:00
obache
1c26be520c Enable to overrite CONFLICTS by static-tcsh. 2007-04-25 13:21:43 +00:00
joerg
055d54daff Always build with tcsetpgrp support on DragonFly, makig zsh not
depend on a control terminal during build.
2007-04-16 19:01:28 +00:00
wiz
e5d830e1e7 Set maintainer to agc (original importer). 2007-04-14 11:43:13 +00:00
wiz
e9b6958d37 Fix some pkglint warnings. 2007-04-11 06:13:57 +00:00
wiz
3c939d02bc Add checksums for patches. 2007-04-11 06:12:10 +00:00
christos
47b8b067df fix the names, silly me. 2007-04-11 04:56:56 +00:00
christos
214fdf7a22 add new files 2007-04-10 00:50:24 +00:00
christos
33c150724b update to tcsh-6.15 2007-04-10 00:49:32 +00:00
wiz
4b17df0924 Remove shells/zsh3 -- old version of shells/zsh{,-current}.
No disagreement on pkgsrc-users.
2007-04-01 21:22:05 +00:00
reed
d6c5898466 Revert PLIST.
Use different install target.

Bump PKGREVISION.

This is also for PR 36080.

(TODO: look at SYSCONFDIR which is /etc.)
2007-03-26 17:01:59 +00:00
reed
480487fae3 Add glob6 and sh6 and respective manpages to PLIST.
Not bumping PKGREVISION as my update was a few minutes ago.

This is for PR 36080.
2007-03-26 16:58:25 +00:00
reed
2a6757e603 Update osh to version 20070324. This is for PR 36080 from upstream
developer.

pkgsrc changes include:

Use BUILD_TARGET=oshall as request in PR.
And make it work with PKGMANDIR.

CHANGES file includes:

Changes that improve compatibility w/ the Sixth Edition Unix shell
are marked w/ a `C:' in the details below.

-------------------------------------------------------------------------------
[osh-20070324]:
osh.c:
	* In main(), changed when fdfree() is called so that it is in a more
	  ideal sequence with other operations according to how the shell is
	  invoked (e.g., interactive shell vs. non-interactive shell).

-------------------------------------------------------------------------------
[osh-20070321]:
	* Imported the project into a local subversion repository.

	* Changed the all of the code to "#include <stdbool.h>" and to use
	  the "bool" data-type macro where appropriate.

Makefile:
	* Added SYSCONFDIR and a new `man' target.

osh.c:
	* Defined _PATH_SYSTEM_LOGIN as `SYSCONFDIR/**/"/osh.login"' instead
	  of "/etc/osh.login" so that the user can use SYSCONFDIR (/etc by
	  default) at build-time to specify the directory where the shell
	  shall search for its system-wide initialization file.

	* Added a new special parameter, $v, which makes the version of the
	  osh package available as a read-only string.  The format is
	  `osh-YYYYMMDD' for official releases and `osh-current (YYYYMMDD)'
	  (interpreted as one word) for development snapshots.

	* Fixed a bug where interactive shells were no longer ignoring SIGTERM
	  when invoked, as they are supposed to.  Now, SIGTERM is being ignored
	  again upon invocation of all interactive shells.

	* Fixed the output from doing a `sigign' so that it matches its
	  documentation in osh.1: "..., a list is printed of those signals
	  which are ignored by sigign in the current shell."

	  Previously, the output from a `sigign' could be a little confusing.
	  Now, its output only indicates those cases where a given signal is
	  being ignored w/ the possibility that it can then be unignored
	  (reset) in the current shell context.

if.c:
	* Added 3 new primaries: -ef (equal files - same device, same inode),
	  -nt (newer than), -ot (older than).  See the if(1) manual page for
	  full details.

-------------------------------------------------------------------------------
[osh-20070131]:
osh.1:
	* Made a few minimal changes to synchronize the manual w/ the code.

osh.c	1.2 (jneitzel) 2007/01/14:
	* Changed the `chdir: No old directory' diagnostic to
	  `chdir: No previous directory' to match the manual.

-------------------------------------------------------------------------------
[osh-20061230]:
	The following files have been removed in this release:
		examples/*: These files are now available at:
			    http://jneitzel.sdf1.org/osh/initialization_files/
		   tests/*: ... until I have a chance to rewrite them ...

*.1:
	* Changed all instances of `UNIX' to `Unix' since the name
	  of the Unix operating system is not an acronym.

pexec.c:
	* Fixed a possible, but very unlikely, memory leak.

osh.c:
	C: Rewrote the shell!  It is now a combination of the ports of the
	   original source code from sh6.c and glob6.c (see CHANGES_sh-to-sh6)
	   w/ the prior enhancements which were found in osh-060124/osh*.[ch] .

fd2.c:
	* Removed the call to lseek(2) to end-of-file for errors.
	  The shell determines when this is necessary.

	* Changed the `: no shell' diagnostic to `: No shell!'
	  in the spirit of sh6(1).

goto.c:
	* Fixed a bug which interfered w/ finding a requested label when
	  its first character had the high-order bit set.  The value of the
	  first character is now passed to getlabel() as an unsigned char
	  converted to an int to allow correct comparison in such a case.

if.c:
	* Removed the call to lseek(2) to end-of-file for errors.
	  The shell determines when this is necessary.

	* Changed the method used to build the argument list for all commands
	  executed by this utility, and removed the `Too many args' diagnostic.
	  The maximum length of the argument list for a command is now limited
	  only by the maximum length that the invoker can pass and by any
	  system-imposed limit for execve(2) (see E2BIG in errno(2)).

	* Changed the `: no shell' diagnostic to `: No shell!'
	  in the spirit of sh6(1).

	* Changed the diagnostic used for `!', `-a', `-o', and `(' operator
	  errors from `: argument expected' to `: expression expected'.
2007-03-26 16:43:34 +00:00
joerg
161c920c15 Prepare for switching to NO_MTREE=yes. 2007-03-24 19:21:18 +00:00
hubertf
4130fbdd78 Remove version, de-indent 2007-03-19 20:30:26 +00:00
joerg
1f3e8234a5 Don't require mtree. 2007-03-16 23:18:42 +00:00
yyamano
b3452709e5 Make this build on Darwin. 2007-02-25 00:57:54 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
wiz
cf154597d5 Update HOMEPAGE. From Sergey Svishchev. 2007-02-22 19:22:25 +00:00
wiz
6e2c35c083 pkglint cleanup; update HOMEPAGE/MASTER_SITES.
From Sergey Svishchev in private mail.
2007-02-22 19:01:13 +00:00
wiz
17d4eb5978 share/emacs/site-lisp now exists by default -- don't try to remove it.
Bump PKGREVISION for the PLIST change.
2007-02-20 19:04:10 +00:00
wiz
baac352610 Update to 3.2.9, including the latest released patches:
Various bugfixes.
2007-02-18 12:21:59 +00:00
rillig
6e16f6a972 This package is not MAKE_JOBS_SAFE. 2007-02-06 07:18:28 +00:00
wiz
29abbd1c1b Mark as BROKEN_IN pkgsrc-2006Q4, based on
ftp://asim.lip6.fr/outgoing/packages/i386/3.1/20070114.1132/broken.html
(latest 3.1/i386 bulk build of 2006Q4).

Feel free to fix them...
2007-01-31 00:04:11 +00:00
rillig
4e9fb66f51 Cannot be built in parallel. 2007-01-18 09:42:14 +00:00
reed
0624df5987 Fix bash's default path to not have hard-coded /usr/pkg/bin but use
LOCALBASE.

I think I did this last December 2005, but did bash2 package correctly.

Reported by Georg Schwarz via tech-pkg.
2007-01-08 19:26:31 +00:00
rillig
2829e658f2 Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.
2007-01-07 09:13:46 +00:00
joerg
829d41b210 CHECK_WRKREF_SKIP is relative. 2006-12-06 18:59:28 +00:00
joerg
11b9d6da3b Consistently only install man pages and bump revision. Easier than
having to deal with different names on all platforms.
2006-11-30 18:02:28 +00:00
obache
047c2dfeb9 Added eltclsh. 2006-11-21 15:29:01 +00:00
obache
19ef338c5b Import eltclsh version 1.6.
Based on PR 22994 by Anthony Mallet.
I modify to adapt to recent pkgsrc tree and update from 1.4 to 1.6.

eltclsh (editline tcl shell) is an interactive shell for the TCL
programming language. It provides command line editing, history browsing
as well as variables and command completion thanks to editline
features. The completion engine is programmable in a way similar to tcsh,
and comes with an programmed completion for the whole TCL language by
default.

The package also provides elwish, an interactive interpreter for the Tk
toolkit.
2006-11-21 15:27:42 +00:00
seb
c0e51e6dc7 Bump PKGREVISION to 5. There is no need to depend anymore
on p5-XML-LibXML-XPathContext package which is about to be deleted:
the p5-XML-LibXML package now provides the perl
XML::LibXML::XPathContext module.
2006-11-05 14:08:20 +00:00
wiz
f0dfa5854f pkglint fixes. 2006-10-22 11:19:24 +00:00
wiz
7ed4f23584 Add patch for bash-3.2 update (broken ru.po file). 2006-10-22 11:18:39 +00:00
wiz
d59e5c8ced Update to 3.2:
This document details the changes between this version, bash-3.2-release,
and the previous version, bash-3.2-beta.

1.  Changes to Bash

a.  Fixed a bug that caused the temporary environment passed to a command to
    affect the shell's environment under certain circumstances.

b.  Fixed a bug in the printf builtin that caused the %q format specifier to
    ignore empty string arguments.

c.  Improved multibyte character environment detection at configuration time.

d.  Fixed a bug in the read builtin that left spurious escape characters in the
    input after processing backslashes when assigning to an array variable.

2.  Changes to Readline

a.  Fixed a redisplay bug that occurred in multibyte-capable locales when the
    prompt was one character longer than the screen width.
------------------------------------------------------------------------------
This document details the changes between this version, bash-3.2-beta,
and the previous version, bash-3.2-alpha.

1.  Changes to Bash

a.  Changed the lexical analyzer to treat locale-specific blank characters as
    white space.

b.  Fixed a bug in command printing to avoid confusion between redirections and
    process substitution.

c.  Fixed problems with cross-compiling originating from inherited environment
    variables.

d.  Added write error reporting to printf builtin.

e.  Fixed a bug in the variable expansion code that could cause a core dump in
    a multi-byte locale.

f.  Fixed a bug that caused substring expansion of a null string to return
    incorrect results.

g.  BASH_COMMAND now retains its previous value while executing commands as the
    result of a trap, as the documentation states.

2.  Changes to Readline

a.  Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing
    the prompt and input line multiple times.

b.  Fixed history expansion to not be confused by here-string redirection.

c.  Readline no longer treats read errors by converting them to newlines, as
    it does with EOF.  This caused partial lines to be returned from readline().

------------------------------------------------------------------------------
This document details the changes between this version, bash-3.2-alpha,
and the previous version, bash-3.1-release.

1.  Changes to Bash

a.  Fixed a source bug that caused the minimal configuration to not compile.

b.  Fixed memory leaks in error handling for the `read' builtin.

c.  Changed the [[ and (( compound commands to set PIPESTATUS with their exit
    status.

d.  Fixed some parsing problems with compound array assignments.

e.  Added additional configuration changes for: NetBSD (incomplete multibyte
    character support)

f.  Fixed two bugs with local array variable creation when shadowing a variable
    of the same name from a previous context.

g.  Fixed the `read' builtin to restore the correct set of completion functions
    if a timeout occurs.

h.  Added code to defer the initialization of HISTSIZE (and its stifling of the
    history list) until the history file is loaded, allowing a startup file to
    override the default value.

i.  Tightened up the arithmetic expression parsing to produce better error
    messages when presented with invalid operators.

j.  Fixed the cross-compilation support to build the signal list at shell
    invocation rather than compile time if cross-compiling.

k.  Fixed multibyte support for non-gcc compilers (or compilers that do not
    allow automatic array variable sizing based on a non-constant value).

l.  Several fixes to the code that manages the list of terminated jobs and
    their exit statuses, and the list of active and recently-terminated jobs
    to avoid pid aliasing/wraparound and allocation errors.

m.  Fixed a problem that allowed scripts to die due to SIGINT while waiting
    for children, even when started in the background or otherwise ignoring
    SIGINT.

n.  Fixed a bug that caused shells invoked as -/bin/bash from not being
    recognized as login shells.

o.  Fixed a problem that caused shells in the background to give the terminal
    to a process group other than the foreground shell process group.

p.  Fixed a problem with extracting the `varname' in ${#varname}.

q.  Fixed the code that handles SIGQUIT to not exit immediately -- thereby
    calling functions that may not be called in a signal handler context --
    but set a flag and exit afterward (like SIGINT).

r.  Changed the brace expansion code to skip over braces that don't begin a
    valid matched brace expansion construct.

s.  Fixed `typeset' and `declare' to not require that their shell function
    operands to be valid shell identifiers.

t.  Changed `test' to use access(2) with a temporary uid/euid swap when testing
    file attributes and running setuid, and access(2) in most other cases.

u.  Changed completion code to not attempt command name completion on a line
    consisting solely of whitespace when no_empty_command_completion is set.

v.  The `hash' builtin now prints nothing in posix mode when the hash table is
    empty, and prints a message to that effect to stdout instead of stderr
    when not in posix mode.

w.  Fixed a bug in the extended pattern matching code that caused it to fail to
    match periods with certain patterns.

x.  Fixed a bug that caused the shell to dump core when performing filename
    generation in directories with thousands of files.

y.  Returned to the original Bourne shell rules for parsing ``:  no recursive
    parsing of embedded quoted strings or ${...} constructs.

z.  The inheritence of the DEBUG, RETURN, and ERR traps is now dependent only
    on the settings of the `functrace' and `errtrace' shell options, rather
    than whether or not the shell is in debugging mode.

aa. Fixed a problem with $HOME being converted to ~ in the expansion of
    members of the DIRSTACK array.

bb. Fixed a problem with quoted arguments to arithmetic expansions in certain
    constructs.

cc. The command word completion code now no longer returns matching directories
    while searching $PATH.

dd. Fixed a bug with zero-padding and precision handling in snprintf()
    replacement.

ee. Fixed a bug that caused the command substitution code not to take embedded
    shell comments into account.

ff. Fixed a bug that caused $((...);(...)) to be misinterpreted as an
    arithmetic substitution.

gg. Fixed a bug in the prompt expansion code that inappropriately added a
    \001 before a \002 under certain circumstances.

hh. Fixed a bug that caused `unset LANG' to not properly reset the locale
    (previous versions would set the locale back to what it was when bash
    was started rather than the system's "native" locale).

ii. Fixed a bug that could cause file descriptors > 10 to not be closed even
    when closed explicitly by a script.

jj. Fixed a bug that caused single quotes to be stripped from ANSI-C quoting
    inside double-quoted command substitutions.

kk. Fixed a bug that could cause core dumps when `return' was executed as the
    last element of a pipeline inside a shell function.

ll. Fixed a bug that caused DEBUG trap strings to overwrite commands stored in
    the jobs list.

2.  Changes to Readline

a.  Fixed a problem that caused segmentation faults when using readline in
    callback mode and typing consecutive DEL characters on an empty line.

b.  Fixed several redisplay problems with multibyte characters, all having to
    do with the different code paths and variable meanings between single-byte
    and multibyte character redisplay.

c.  Fixed a problem with key sequence translation when presented with the
    sequence \M-\C-x.

d.  Fixed a problem that prevented the `a' command in vi mode from being
    undone and redone properly.

e.  Fixed a problem that prevented empty inserts in vi mode from being undone
    properly.

f.  Fixed a problem that caused readline to initialize with an incorrect idea
    of whether or not the terminal can autowrap.

g.  Fixed output of key bindings (like bash `bind -p') to honor the setting of
    convert-meta and use \e where appropriate.

h.  Changed the default filename completion function to call the filename
    dequoting function if the directory completion hook isn't set.  This means
    that any directory completion hooks need to dequote the directory name,
    since application-specific hooks need to know how the word was quoted,
    even if no other changes are made.

i.  Fixed a bug with creating the prompt for a non-interactive search string
    when there are non-printing characters in the primary prompt.

j.  Fixed a bug that caused prompts with invisible characters to be redrawn
    multiple times in a multibyte locale.

k.  Fixed a bug that could cause the key sequence scanning code to return the
    wrong function.

l.  Fixed a problem with the callback interface that caused it to fail when
    using multi-character keyboard macros.

m.  Fixed a bug that could cause a core dump when an edited history entry was
    re-executed under certain conditions.

n.  Fixed a bug that caused readline to reference freed memory when attmpting
    to display a portion of the prompt.

3.  New Features in Bash

a.  Changed the parameter pattern replacement functions to not anchor the
    pattern at the beginning of the string if doing global replacement - that
    combination doesn't make any sense.

b.  When running in `word expansion only' mode (--wordexp option), inhibit
    process substitution.

c.  Loadable builtins now work on MacOS X 10.[34].

d.  Shells running in posix mode no longer set $HOME, as POSIX requires.

e.  The code that checks for binary files being executed as shell scripts now
    checks only for NUL rather than any non-printing character.

f.  Quoting the string argument to the [[ command's  =~ operator now forces
    string matching, as with the other pattern-matching operators.

4.  New Features in Readline

a.  Calling applications can now set the keyboard timeout to 0, allowing
    poll-like behavior.

b.  The value of SYS_INPUTRC (configurable at compilation time) is now used as
    the default last-ditch startup file.

c.  The history file reading functions now allow windows-like \r\n line
    terminators.
2006-10-22 11:18:10 +00:00
rillig
b8c6a5e566 Fixed PKGMANDIR. 2006-10-21 11:39:16 +00:00
obache
72be67100e Update osh to 060124.
Patch provided by Martin Wilke via PR 34313.

[osh-060124]:
Makefile:
	* Added targets for building/installing sh6(1) and glob6(1).
	  Refer to the README file for further details.

	* Removed the `check-sh6' target since the tests were originally
	  written for osh(1) and sh6(1) as Thompson-shell reimplementations,
	  not ports.

sh6:
	* Changed sh6(1) from being a reimplementation which is compiled from
	  the same sources as osh(1) to being a port of the original Thompson
	  shell from Sixth Edition Unix.  Refer to the CHANGES_sh-to-sh6 file
	  for further details.

osh:
	C: Treat both `( ; )' and `( & )' as syntax errors.

	C: Print the process ID for each command of an asynchronous pipeline,
	   not just the last command.

	C: Added the `newgrp' special command.  It is similar to `login'
	   except that the newgrp(1) utility replaces the current interactive
	   shell rather than the login(1) utility.

	* When opening `/dev/null' is needed for an asynchronous command,
	  call open(2) w/ the O_RDONLY flag instead of O_RDWR.
2006-10-17 12:31:22 +00:00
joerg
f75176b39c Flag a number of packages I use as supporting (user-)destdir.
apg is a bit special as it has some hardcoded ownership, so
mark that as "destdir".
2006-10-09 12:52:34 +00:00
taca
3ef21cd6b9 This package needs texinfo 4.1 or lator. (I found on NetBSD 1.6.2 which
has texinfo 4.0 on base system.)
2006-10-07 08:21:42 +00:00
rillig
380d1a0655 Prevent this package from scanning the whole filesystem during the
install phase.
2006-10-05 01:11:41 +00:00
wiz
b6160330f7 Update MASTER_SITES and/or HOMEPAGE, from Sergey Svishchev. 2006-10-04 21:53:15 +00:00
obache
668a4007e5 Update {static-,}ast-ksh to 2006-02-14 version,
patch provided by Martin Wilke in PR 34575.

Changes: too many to list,
See PR 34575.
2006-10-03 14:32:37 +00:00
joerg
0eac970e5d + mksh 2006-09-15 13:02:09 +00:00
joerg
f260bb8026 Import mksh. From Thorsten Glaser in private mail.
From DESCR:
mksh is the MirBSD enhanced version of the Public Domain Korn
shell (pdksh), a bourne-compatible shell which is largely si-
milar to the original AT&T Korn shell.  It includes bug fixes
and feature improvements in order to produce a modern, robust
shell good for interactive and especially script use.
2006-09-15 13:00:37 +00:00
kristerw
8a0d514cc3 Update shells/scsh to 0.6.7.
New in this release
=====================
** Support for interix
** Ignoring of synchronous signals
   The procedures IGNORE-SIGNAL and HANDLE-SIGNAL-DEFAULT have been
   added.
** Support for gcc 4.0
** 0.6 for module path
   The standard module path now contains
   ${prefix}/lib/scsh/modules/0.6 in addition to
   $prefix/lib/scsh/modules for compatibility with install-lib
** New implementation of open-pty
   Instead of search for /dev/pty??, scsh now tries a wide variety of
   ways to aquire a new pty and the corresponding tty.
** Bug fixes
   argv[0] is now the first element of command-line
   Fixes found by new test suite
   Regexp for empty string
   Argument checking for COPY-BYTES!
   GC_PROTECTs for send_substring
   format_date support for #f timezone
   Added predicates for user-info and group-info
   Reaping of stopped processes: Do not mark stopped processes as dead
   md5-digest-for-port
   | regexps return char-sets
   standard-let in srfi-5
   (%)read-delimited! checks for mutable buffer
   leap second for srfi-19
   The default image for the scshvm is now the installed scsh.image.
2006-09-03 11:39:08 +00:00
wiz
bf4d0ad23c Update to 3.1pl17, provided by Martin Wilke in PR 34301:
Bugfixes.
2006-09-03 08:30:42 +00:00
wiz
9da8d97238 Remove static-bash2: Superseded by bash's "static" option. 2006-07-17 16:58:04 +00:00